← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. 5000
  3. line 2
  4. a pop-up message
  5. output
  6. False
  7. line 3
  8. a beep sound
  9. False
  10. input
  11. taking a photo
  12. a pop-up message
  13. line 3
  14. True
  15. line 3
  16. False
  17. adding up a bill
  18. processing
  19. line 3
  20. sorting the scores
  21. 2000
  22. line 2
  23. 75
  24. True
  25. False
  26. output
  27. True
  28. 470
  29. output
  30. 39
  31. True
  32. 520
  33. a beep sound
  34. processing
  35. line 3
  36. line 3
  37. line 3
  38. 24
  39. 3000
  40. line 3

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