← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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