← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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