← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. sorting the scores
  2. typing your age
  3. 12000
  4. 360
  5. 25
  6. working out a tip
  7. a pop-up message
  8. 20
  9. processing
  10. False
  11. 7000
  12. 100
  13. a beep sound
  14. speaking a command
  15. False
  16. line 2
  17. a result on screen
  18. a result on screen
  19. True
  20. typing your age
  21. 330
  22. processing
  23. True
  24. input
  25. False
  26. line 2
  27. input
  28. 73
  29. 23
  30. line 3
  31. line 3
  32. processing
  33. line 3
  34. 240
  35. line 3
  36. line 3
  37. taking a photo
  38. sorting the scores
  39. output
  40. line 2

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