← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a beep sound
  2. 570
  3. processing
  4. line 3
  5. False
  6. input
  7. adding up a bill
  8. line 3
  9. False
  10. output
  11. line 2
  12. False
  13. 100
  14. checking a password
  15. output
  16. 34
  17. line 3
  18. sorting the scores
  19. a pop-up message
  20. 73
  21. line 3
  22. 12000
  23. 6000
  24. 60
  25. processing
  26. line 3
  27. line 3
  28. 150
  29. False
  30. False
  31. tapping a button
  32. tapping a button
  33. a buzz (vibration)
  34. line 3
  35. typing your age
  36. line 3
  37. line 2
  38. working out a tip
  39. True
  40. a result on screen

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