← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. 480
  3. a buzz (vibration)
  4. a result on screen
  5. line 3
  6. working out a tip
  7. sorting the scores
  8. 15000
  9. output
  10. 225
  11. typing your age
  12. sorting the scores
  13. line 3
  14. True
  15. output
  16. 59
  17. tapping a button
  18. adding up a bill
  19. processing
  20. working out a tip
  21. True
  22. 60
  23. speaking a command
  24. input
  25. 300
  26. taking a photo
  27. True
  28. line 2
  29. processing
  30. checking a password
  31. 23
  32. False
  33. 70
  34. False
  35. output
  36. line 3
  37. line 3
  38. 375
  39. 200
  40. line 2

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