← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a buzz (vibration)
  2. 80
  3. taking a photo
  4. False
  5. a pop-up message
  6. processing
  7. 70
  8. False
  9. speaking a command
  10. 4000
  11. False
  12. typing your age
  13. processing
  14. processing
  15. True
  16. a beep sound
  17. working out a tip
  18. output
  19. adding up a bill
  20. 220
  21. 240
  22. 200
  23. tapping a button
  24. 20
  25. input
  26. line 3
  27. sorting the scores
  28. 12000
  29. speaking a command
  30. line 3
  31. typing your age
  32. 18
  33. 78
  34. True
  35. line 2
  36. line 3
  37. True
  38. line 2
  39. input
  40. 33

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