← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a pop-up message
  2. sorting the scores
  3. 70
  4. taking a photo
  5. line 2
  6. output
  7. checking a password
  8. speaking a command
  9. taking a photo
  10. adding up a bill
  11. line 2
  12. input
  13. 520
  14. a buzz (vibration)
  15. input
  16. typing your age
  17. True
  18. line 3
  19. line 3
  20. speaking a command
  21. sorting the scores
  22. 225
  23. True
  24. line 3
  25. 250
  26. 2000
  27. False
  28. 4000
  29. line 3
  30. line 2
  31. True
  32. a beep sound
  33. processing
  34. True
  35. working out a tip
  36. line 3
  37. line 2
  38. False
  39. tapping a button
  40. 45

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