← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. 250
  3. a result on screen
  4. line 3
  5. 180
  6. line 3
  7. a buzz (vibration)
  8. False
  9. a beep sound
  10. True
  11. line 3
  12. a result on screen
  13. line 3
  14. 9000
  15. 36
  16. line 3
  17. speaking a command
  18. True
  19. False
  20. processing
  21. working out a tip
  22. False
  23. 66
  24. a pop-up message
  25. tapping a button
  26. input
  27. True
  28. line 3
  29. line 3
  30. False
  31. True
  32. a pop-up message
  33. line 3
  34. input
  35. 30
  36. False
  37. line 3
  38. taking a photo
  39. True
  40. output

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