← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. taking a photo
  2. typing your age
  3. speaking a command
  4. 80
  5. a result on screen
  6. False
  7. 500
  8. a result on screen
  9. True
  10. a pop-up message
  11. False
  12. line 3
  13. line 3
  14. False
  15. 260
  16. 130
  17. line 2
  18. checking a password
  19. tapping a button
  20. line 3
  21. 75
  22. 77
  23. a beep sound
  24. True
  25. False
  26. line 3
  27. output
  28. input
  29. line 3
  30. 80
  31. line 2
  32. 12000
  33. 25
  34. True
  35. False
  36. True
  37. input
  38. True
  39. True
  40. adding up a bill

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