← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 4000
  2. checking a password
  3. False
  4. a beep sound
  5. a pop-up message
  6. 250
  7. line 3
  8. line 3
  9. output
  10. output
  11. 6000
  12. False
  13. adding up a bill
  14. False
  15. 9000
  16. True
  17. speaking a command
  18. a result on screen
  19. 290
  20. line 3
  21. line 3
  22. 11000
  23. checking a password
  24. line 3
  25. 57
  26. 19
  27. input
  28. input
  29. False
  30. False
  31. 150
  32. input
  33. True
  34. working out a tip
  35. 47
  36. line 3
  37. line 2
  38. 280
  39. False
  40. False

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