← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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