← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. tapping a button
  3. input
  4. line 3
  5. checking a password
  6. a result on screen
  7. input
  8. a pop-up message
  9. line 3
  10. 210
  11. 3000
  12. line 3
  13. output
  14. typing your age
  15. line 2
  16. 280
  17. 200
  18. typing your age
  19. True
  20. 2000
  21. a buzz (vibration)
  22. 30
  23. 360
  24. 8000
  25. 510
  26. False
  27. 150
  28. working out a tip
  29. input
  30. True
  31. output
  32. sorting the scores
  33. line 3
  34. taking a photo
  35. line 2
  36. False
  37. adding up a bill
  38. line 3
  39. line 3
  40. line 3

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