← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. a beep sound
  3. output
  4. 150
  5. output
  6. tapping a button
  7. input
  8. True
  9. line 2
  10. line 3
  11. a pop-up message
  12. input
  13. 8000
  14. 120
  15. 375
  16. sorting the scores
  17. line 3
  18. speaking a command
  19. True
  20. 330
  21. 5000
  22. taking a photo
  23. taking a photo
  24. False
  25. 280
  26. 100
  27. sorting the scores
  28. line 3
  29. False
  30. 300
  31. 210
  32. line 3
  33. 150
  34. 57
  35. line 3
  36. speaking a command
  37. True
  38. working out a tip
  39. adding up a bill
  40. a result on screen

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