← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. line 2
  3. processing
  4. processing
  5. line 3
  6. adding up a bill
  7. a result on screen
  8. working out a tip
  9. 325
  10. a result on screen
  11. a pop-up message
  12. tapping a button
  13. speaking a command
  14. False
  15. checking a password
  16. True
  17. taking a photo
  18. 180
  19. line 3
  20. 420
  21. 70
  22. False
  23. False
  24. input
  25. line 3
  26. 63
  27. adding up a bill
  28. line 3
  29. speaking a command
  30. 275
  31. line 3
  32. False
  33. tapping a button
  34. output
  35. False
  36. input
  37. True
  38. line 2
  39. line 3
  40. a beep sound

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