← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. taking a photo
  3. 4000
  4. True
  5. False
  6. a beep sound
  7. False
  8. a pop-up message
  9. line 3
  10. line 3
  11. typing your age
  12. output
  13. adding up a bill
  14. 77
  15. processing
  16. sorting the scores
  17. output
  18. True
  19. 75
  20. typing your age
  21. a result on screen
  22. a beep sound
  23. True
  24. line 3
  25. 69
  26. output
  27. output
  28. line 3
  29. line 3
  30. input
  31. working out a tip
  32. line 3
  33. 42
  34. input
  35. processing
  36. a pop-up message
  37. tapping a button
  38. 220
  39. line 2
  40. line 3

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