← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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