← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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