← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. checking a password
  2. line 2
  3. sorting the scores
  4. 3000
  5. input
  6. output
  7. True
  8. True
  9. 54
  10. False
  11. a result on screen
  12. adding up a bill
  13. tapping a button
  14. input
  15. line 2
  16. processing
  17. line 3
  18. line 2
  19. typing your age
  20. line 3
  21. line 2
  22. 5000
  23. a pop-up message
  24. 10000
  25. line 3
  26. True
  27. line 3
  28. speaking a command
  29. a beep sound
  30. processing
  31. line 3
  32. 90
  33. True
  34. adding up a bill
  35. taking a photo
  36. False
  37. True
  38. 420
  39. taking a photo
  40. line 3

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