← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. 72
  3. line 3
  4. tapping a button
  5. a result on screen
  6. 70
  7. 140
  8. a beep sound
  9. working out a tip
  10. 49
  11. checking a password
  12. a beep sound
  13. 360
  14. line 2
  15. input
  16. True
  17. 5000
  18. False
  19. input
  20. typing your age
  21. line 3
  22. a buzz (vibration)
  23. processing
  24. sorting the scores
  25. output
  26. 8000
  27. line 3
  28. processing
  29. adding up a bill
  30. line 3
  31. speaking a command
  32. tapping a button
  33. line 3
  34. 340
  35. False
  36. line 2
  37. True
  38. line 3
  39. typing your age
  40. line 2

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