← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 60
  3. a result on screen
  4. line 2
  5. 3000
  6. 62
  7. a beep sound
  8. False
  9. adding up a bill
  10. input
  11. line 3
  12. sorting the scores
  13. output
  14. 50
  15. line 3
  16. a result on screen
  17. taking a photo
  18. input
  19. False
  20. 340
  21. False
  22. 510
  23. checking a password
  24. working out a tip
  25. False
  26. processing
  27. line 3
  28. False
  29. adding up a bill
  30. typing your age
  31. processing
  32. 180
  33. 15000
  34. 44
  35. line 3
  36. output
  37. 260
  38. a beep sound
  39. True
  40. line 3

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