← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. False
  3. a result on screen
  4. line 2
  5. False
  6. line 3
  7. False
  8. line 3
  9. True
  10. input
  11. False
  12. line 3
  13. line 3
  14. speaking a command
  15. taking a photo
  16. a buzz (vibration)
  17. processing
  18. False
  19. input
  20. 2000
  21. tapping a button
  22. output
  23. 7000
  24. a buzz (vibration)
  25. line 3
  26. False
  27. taking a photo
  28. line 3
  29. False
  30. a result on screen
  31. True
  32. typing your age
  33. 410
  34. True
  35. False
  36. 300
  37. False
  38. a beep sound
  39. True
  40. line 3

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