← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. taking a photo
  3. 62
  4. output
  5. taking a photo
  6. output
  7. line 3
  8. 120
  9. False
  10. False
  11. line 3
  12. a pop-up message
  13. input
  14. 11000
  15. False
  16. processing
  17. a result on screen
  18. a pop-up message
  19. line 3
  20. 9000
  21. line 3
  22. 55
  23. a beep sound
  24. line 3
  25. line 3
  26. typing your age
  27. line 3
  28. line 3
  29. input
  30. 400
  31. 14000
  32. a result on screen
  33. line 3
  34. False
  35. checking a password
  36. line 3
  37. working out a tip
  38. 210
  39. False
  40. a buzz (vibration)

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