← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 40
  2. False
  3. False
  4. a beep sound
  5. True
  6. output
  7. line 3
  8. True
  9. tapping a button
  10. line 3
  11. input
  12. a pop-up message
  13. output
  14. 280
  15. speaking a command
  16. 510
  17. input
  18. line 2
  19. a result on screen
  20. a buzz (vibration)
  21. line 3
  22. True
  23. line 3
  24. True
  25. True
  26. True
  27. a result on screen
  28. speaking a command
  29. line 2
  30. True
  31. tapping a button
  32. taking a photo
  33. False
  34. checking a password
  35. taking a photo
  36. line 3
  37. 47
  38. 570
  39. False
  40. line 3

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