← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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