← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

App development lesson 7: Input, processing and output · Set 268 · 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.Which of these is an output? (a) adding up a bill (b) typing your age (c) tapping a button (d) a beep sound
  2. 2.Which of these is an output? (a) adding up a bill (b) tapping a button (c) typing your age (d) a buzz (vibration)
  3. 3.⚙️ In an app, is checking a password an input, processing or an output? (a) input (b) processing (c) output
  4. 4.True or false: taking a photo is an input. (a) True (b) False
  5. 5.True or false: checking a password is an input. (a) False (b) True
  6. 6.⚙️ In an app, is typing your age an input, processing or an output? (a) input (b) processing (c) output
  7. 7.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 14; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 2 (b) line 1 (c) line 3
  8. 8.⚙️ In an app, is a buzz (vibration) an input, processing or an output? (a) input (b) output (c) processing
  9. 9.🔍 Which is the odd one out? (a) a beep sound (b) a pop-up message (c) adding up a bill (d) a buzz (vibration)
  10. 10.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 5; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 1 (b) line 3 (c) line 2
  11. 11.True or false: a pop-up message is an output. (a) True (b) False
  12. 12.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 7; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 3 (b) line 1 (c) line 2
  13. 13.True or false: a beep sound is an output. (a) True (b) False
  14. 14.⚙️ In an app, is sorting the scores an input, processing or an output? (a) processing (b) input (c) output
  15. 15.True or false: taking a photo is processing. (a) True (b) False
  16. 16.⚙️ What number does this app show?
    let price = 240; // typed by the user
    let off = 20; // typed by the user
    let pay = price - off;
    show(pay);
  17. 17.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 6; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 2 (b) line 3 (c) line 1
  18. 18.⚙️ In an app, is working out a tip an input, processing or an output? (a) output (b) input (c) processing
  19. 19.⚙️ What number does this app show?
    let price = 580; // typed by the user
    let off = 20; // typed by the user
    let pay = price - off;
    show(pay);
  20. 20.⚙️ In an app, is speaking a command an input, processing or an output? (a) input (b) processing (c) output
  21. 21.True or false: a pop-up message is processing. (a) True (b) False
  22. 22.Which of these is an input? (a) working out a tip (b) sorting the scores (c) a buzz (vibration) (d) tapping a button
  23. 23.⚙️ What number does this app show?
    let price = 300; // typed by the user
    let off = 20; // typed by the user
    let pay = price - off;
    show(pay);
  24. 24.Which of these is an input? (a) a beep sound (b) a pop-up message (c) adding up a bill (d) speaking a command
  25. 25.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 100; // typed by the user
    line 2: let qty = 6; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 2 (b) line 1 (c) line 3 (d) line 4
  26. 26.🔍 Which is the odd one out? (a) a pop-up message (b) a result on screen (c) sorting the scores (d) a beep sound
  27. 27.True or false: a result on screen is processing. (a) False (b) True
  28. 28.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 370; // 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 2 (b) line 3 (c) line 4 (d) line 1
  29. 29.Which of these is an output? (a) a pop-up message (b) adding up a bill (c) tapping a button (d) speaking a command
  30. 30.🔍 Which is the odd one out? (a) working out a tip (b) adding up a bill (c) a beep sound (d) checking a password
  31. 31.⚙️ What number does this app show?
    let km = 13; // typed by the user
    let metres = km * 1000;
    show(metres);
  32. 32.🔍 Which is the odd one out? (a) sorting the scores (b) checking a password (c) adding up a bill (d) tapping a button
  33. 33.⚙️ In an app, is a pop-up message an input, processing or an output? (a) output (b) input (c) processing
  34. 34.True or false: sorting the scores is an output. (a) False (b) True
  35. 35.Which of these is processing? (a) speaking a command (b) a pop-up message (c) a buzz (vibration) (d) adding up a bill
  36. 36.⚙️ 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 1 (c) line 2 (d) line 3
  37. 37.True or false: typing your age is an output. (a) True (b) False
  38. 38.🔍 Which is the odd one out? (a) taking a photo (b) tapping a button (c) typing your age (d) a buzz (vibration)
  39. 39.Which of these is an input? (a) a buzz (vibration) (b) a result on screen (c) a beep sound (d) typing your age
  40. 40.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 150; // typed by the user
    line 2: let friends = 3; // 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

Answer key

  1. a beep sound
  2. a buzz (vibration)
  3. processing
  4. True
  5. False
  6. input
  7. line 2
  8. output
  9. adding up a bill
  10. line 2
  11. True
  12. line 2
  13. True
  14. processing
  15. False
  16. 220
  17. line 2
  18. processing
  19. 560
  20. input
  21. False
  22. tapping a button
  23. 280
  24. speaking a command
  25. line 3
  26. sorting the scores
  27. False
  28. line 3
  29. a pop-up message
  30. a beep sound
  31. 13000
  32. tapping a button
  33. output
  34. False
  35. adding up a bill
  36. line 3
  37. False
  38. a buzz (vibration)
  39. typing your age
  40. line 3

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