← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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