← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. line 3
  3. input
  4. True
  5. a beep sound
  6. 46
  7. 310
  8. working out a tip
  9. a beep sound
  10. speaking a command
  11. adding up a bill
  12. taking a photo
  13. output
  14. checking a password
  15. 400
  16. output
  17. False
  18. input
  19. a buzz (vibration)
  20. 45
  21. processing
  22. line 3
  23. a result on screen
  24. line 3
  25. True
  26. typing your age
  27. line 3
  28. a pop-up message
  29. line 3
  30. True
  31. a buzz (vibration)
  32. line 3
  33. processing
  34. 5000
  35. output
  36. 13000
  37. 120
  38. checking a password
  39. line 3
  40. 12

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