← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. 110
  3. False
  4. output
  5. line 3
  6. 425
  7. line 2
  8. a result on screen
  9. tapping a button
  10. input
  11. 33
  12. line 3
  13. processing
  14. False
  15. 14000
  16. processing
  17. taking a photo
  18. working out a tip
  19. line 3
  20. sorting the scores
  21. 120
  22. output
  23. False
  24. line 2
  25. 9000
  26. 220
  27. checking a password
  28. False
  29. line 3
  30. line 2
  31. True
  32. speaking a command
  33. adding up a bill
  34. checking a password
  35. line 3
  36. a result on screen
  37. line 3
  38. line 3
  39. line 2
  40. False

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