← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

App development lesson 7: Input, processing and output · Set 780 · 40 questions
TalentJR

Developer's tip (In, work, out): Input → processing → output. Input: typing, tapping, a photo, your voice. Output: a result on screen, a sound, a buzz, a pop-up. In code, the processing line works out a new value from the inputs; show() is the output.

NameDateTime takenScore ___ / 40
  1. 1.True or false: a result on screen is an output. (a) False (b) True
  2. 2.⚙️ What number does this app show?
    let bill = 86; // typed by the user
    let friends = 2; // typed by the user
    let share = bill / friends;
    show(share);
  3. 3.True or false: a result on screen is an input. (a) True (b) False
  4. 4.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 10; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 1 (b) line 2 (c) line 3
  5. 5.Which of these is processing? (a) working out a tip (b) a buzz (vibration) (c) tapping a button (d) a beep sound
  6. 6.⚙️ What number does this app show?
    let price = 570; // typed by the user
    let off = 50; // typed by the user
    let pay = price - off;
    show(pay);
  7. 7.⚙️ What number does this app show?
    let price = 480; // typed by the user
    let off = 10; // typed by the user
    let pay = price - off;
    show(pay);
  8. 8.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 68; // typed by the user
    line 2: let friends = 2; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 2 (b) line 1 (c) line 4 (d) line 3
  9. 9.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 148; // typed by the user
    line 2: let friends = 2; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 4 (b) line 3 (c) line 2 (d) line 1
  10. 10.⚙️ What number does this app show?
    let km = 12; // typed by the user
    let metres = km * 1000;
    show(metres);
  11. 11.🔍 Which is the odd one out? (a) working out a tip (b) typing your age (c) adding up a bill (d) checking a password
  12. 12.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 300; // typed by the user
    line 2: let off = 50; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 2 (b) line 3 (c) line 1 (d) line 4
  13. 13.⚙️ What number does this app show?
    let km = 13; // typed by the user
    let metres = km * 1000;
    show(metres);
  14. 14.Which of these is an output? (a) working out a tip (b) tapping a button (c) adding up a bill (d) a result on screen
  15. 15.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 320; // typed by the user
    line 2: let off = 10; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 3 (b) line 1 (c) line 4 (d) line 2
  16. 16.⚙️ In an app, is speaking a command an input, processing or an output? (a) output (b) input (c) processing
  17. 17.🔍 Which is the odd one out? (a) a pop-up message (b) adding up a bill (c) a beep sound (d) a buzz (vibration)
  18. 18.⚙️ In an app, is taking a photo an input, processing or an output? (a) output (b) input (c) processing
  19. 19.⚙️ In an app, is typing your age an input, processing or an output? (a) processing (b) output (c) input
  20. 20.True or false: a buzz (vibration) is processing. (a) False (b) True
  21. 21.⚙️ In an app, is checking a password an input, processing or an output? (a) input (b) output (c) processing
  22. 22.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 13; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 2 (b) line 3 (c) line 1
  23. 23.🔍 Which is the odd one out? (a) tapping a button (b) a buzz (vibration) (c) typing your age (d) speaking a command
  24. 24.Which of these is an output? (a) speaking a command (b) a buzz (vibration) (c) taking a photo (d) tapping a button
  25. 25.True or false: typing your age is an input. (a) True (b) False
  26. 26.True or false: taking a photo is an input. (a) False (b) True
  27. 27.🔍 Which is the odd one out? (a) a beep sound (b) sorting the scores (c) a buzz (vibration) (d) a result on screen
  28. 28.⚙️ What number does this app show?
    let price = 100; // typed by the user
    let off = 20; // typed by the user
    let pay = price - off;
    show(pay);
  29. 29.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 310; // typed by the user
    line 2: let off = 30; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 3 (b) line 1 (c) line 4 (d) line 2
  30. 30.⚙️ What number does this app show?
    let price = 130; // typed by the user
    let off = 30; // typed by the user
    let pay = price - off;
    show(pay);
  31. 31.⚙️ What number does this app show?
    let price = 25; // typed by the user
    let qty = 6; // typed by the user
    let total = price * qty;
    show(total);
  32. 32.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 30; // typed by the user
    line 2: let qty = 5; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 4 (b) line 2 (c) line 1 (d) line 3
  33. 33.True or false: speaking a command is an input. (a) True (b) False
  34. 34.⚙️ In an app, is tapping a button an input, processing or an output? (a) output (b) input (c) processing
  35. 35.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 60; // typed by the user
    line 2: let friends = 5; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 4 (b) line 2 (c) line 3 (d) line 1
  36. 36.⚙️ In an app, is a buzz (vibration) an input, processing or an output? (a) processing (b) input (c) output
  37. 37.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 76; // typed by the user
    line 2: let friends = 4; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 4 (b) line 3 (c) line 1 (d) line 2
  38. 38.True or false: a buzz (vibration) is an input. (a) True (b) False
  39. 39.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 140; // typed by the user
    line 2: let off = 20; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 2 (b) line 3 (c) line 1 (d) line 4
  40. 40.⚙️ What number does this app show?
    let km = 11; // typed by the user
    let metres = km * 1000;
    show(metres);

Answer key

  1. True
  2. 43
  3. False
  4. line 2
  5. working out a tip
  6. 520
  7. 470
  8. line 3
  9. line 3
  10. 12000
  11. typing your age
  12. line 3
  13. 13000
  14. a result on screen
  15. line 3
  16. input
  17. adding up a bill
  18. input
  19. input
  20. False
  21. processing
  22. line 2
  23. a buzz (vibration)
  24. a buzz (vibration)
  25. True
  26. True
  27. sorting the scores
  28. 80
  29. line 3
  30. 100
  31. 150
  32. line 3
  33. True
  34. input
  35. line 3
  36. output
  37. line 3
  38. False
  39. line 3
  40. 11000

Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students