← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 4000
  3. line 3
  4. 7000
  5. False
  6. a pop-up message
  7. True
  8. sorting the scores
  9. output
  10. True
  11. a result on screen
  12. line 3
  13. line 2
  14. output
  15. typing your age
  16. line 2
  17. processing
  18. working out a tip
  19. input
  20. 75
  21. typing your age
  22. 11000
  23. line 2
  24. 11
  25. tapping a button
  26. True
  27. False
  28. 165
  29. line 3
  30. True
  31. 570
  32. output
  33. line 3
  34. True
  35. True
  36. a buzz (vibration)
  37. taking a photo
  38. a result on screen
  39. line 3
  40. input

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