← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. a buzz (vibration)
  3. input
  4. line 3
  5. processing
  6. checking a password
  7. True
  8. False
  9. checking a password
  10. 57
  11. 240
  12. 43
  13. False
  14. line 3
  15. typing your age
  16. True
  17. input
  18. 3000
  19. output
  20. line 3
  21. False
  22. 9000
  23. line 3
  24. sorting the scores
  25. line 3
  26. False
  27. True
  28. False
  29. output
  30. line 3
  31. 8000
  32. False
  33. 180
  34. tapping a button
  35. False
  36. working out a tip
  37. adding up a bill
  38. 260
  39. a pop-up message
  40. output

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