← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. True
  3. False
  4. a result on screen
  5. tapping a button
  6. typing your age
  7. output
  8. line 3
  9. processing
  10. line 3
  11. processing
  12. 4000
  13. True
  14. 8000
  15. input
  16. 58
  17. 14000
  18. input
  19. sorting the scores
  20. working out a tip
  21. line 3
  22. line 3
  23. 135
  24. False
  25. adding up a bill
  26. line 3
  27. 290
  28. False
  29. a beep sound
  30. line 3
  31. typing your age
  32. False
  33. line 3
  34. tapping a button
  35. 11
  36. checking a password
  37. False
  38. line 3
  39. line 2
  40. 15000

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