← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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