← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. output
  3. False
  4. 64
  5. a result on screen
  6. processing
  7. 400
  8. line 3
  9. checking a password
  10. line 3
  11. a result on screen
  12. 530
  13. typing your age
  14. 3000
  15. 64
  16. sorting the scores
  17. taking a photo
  18. True
  19. True
  20. input
  21. input
  22. working out a tip
  23. True
  24. working out a tip
  25. True
  26. True
  27. False
  28. False
  29. tapping a button
  30. line 2
  31. input
  32. 360
  33. 24
  34. processing
  35. False
  36. a beep sound
  37. False
  38. 75
  39. 4000
  40. line 3

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