← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. 64
  3. a pop-up message
  4. 15000
  5. line 2
  6. adding up a bill
  7. output
  8. a result on screen
  9. 11
  10. False
  11. typing your age
  12. adding up a bill
  13. output
  14. 125
  15. sorting the scores
  16. 70
  17. checking a password
  18. False
  19. taking a photo
  20. 510
  21. False
  22. 560
  23. line 3
  24. line 3
  25. speaking a command
  26. input
  27. a beep sound
  28. line 3
  29. taking a photo
  30. 14000
  31. False
  32. line 3
  33. 290
  34. input
  35. a pop-up message
  36. False
  37. working out a tip
  38. line 3
  39. False
  40. 350

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