← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. taking a photo
  2. line 3
  3. 80
  4. input
  5. 90
  6. False
  7. adding up a bill
  8. tapping a button
  9. line 3
  10. speaking a command
  11. adding up a bill
  12. 120
  13. 12000
  14. 590
  15. line 2
  16. 330
  17. False
  18. line 2
  19. 400
  20. input
  21. False
  22. working out a tip
  23. 52
  24. line 3
  25. 270
  26. True
  27. sorting the scores
  28. working out a tip
  29. a beep sound
  30. line 3
  31. 6000
  32. False
  33. line 3
  34. False
  35. line 3
  36. typing your age
  37. output
  38. 58
  39. a buzz (vibration)
  40. line 2

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