← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. a pop-up message
  3. working out a tip
  4. adding up a bill
  5. taking a photo
  6. taking a photo
  7. line 3
  8. processing
  9. output
  10. line 3
  11. line 3
  12. working out a tip
  13. 240
  14. True
  15. tapping a button
  16. typing your age
  17. 170
  18. line 2
  19. input
  20. line 3
  21. input
  22. sorting the scores
  23. 120
  24. 390
  25. 63
  26. input
  27. processing
  28. False
  29. output
  30. adding up a bill
  31. a beep sound
  32. line 3
  33. 58
  34. line 3
  35. line 3
  36. 6000
  37. 550
  38. 285
  39. typing your age
  40. tapping a button

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