← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 195
  3. checking a password
  4. processing
  5. a buzz (vibration)
  6. a beep sound
  7. input
  8. False
  9. input
  10. 180
  11. processing
  12. checking a password
  13. a result on screen
  14. 11000
  15. sorting the scores
  16. line 3
  17. output
  18. tapping a button
  19. speaking a command
  20. output
  21. a pop-up message
  22. 4000
  23. a result on screen
  24. 80
  25. True
  26. 3000
  27. line 2
  28. 38
  29. True
  30. True
  31. a pop-up message
  32. 300
  33. sorting the scores
  34. typing your age
  35. 310
  36. True
  37. line 3
  38. 40
  39. 280
  40. line 3

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