← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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