← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 400
  3. True
  4. adding up a bill
  5. a pop-up message
  6. 10000
  7. tapping a button
  8. input
  9. input
  10. 71
  11. processing
  12. checking a password
  13. 150
  14. tapping a button
  15. True
  16. line 3
  17. taking a photo
  18. 29
  19. speaking a command
  20. 11000
  21. 210
  22. processing
  23. processing
  24. True
  25. input
  26. False
  27. 390
  28. line 2
  29. line 3
  30. output
  31. 60
  32. 74
  33. False
  34. output
  35. 4000
  36. line 3
  37. working out a tip
  38. line 3
  39. line 3
  40. line 3

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