← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. processing
  3. adding up a bill
  4. True
  5. a result on screen
  6. input
  7. processing
  8. a pop-up message
  9. False
  10. 560
  11. a buzz (vibration)
  12. line 3
  13. False
  14. 11000
  15. speaking a command
  16. 390
  17. 10
  18. typing your age
  19. input
  20. output
  21. line 3
  22. sorting the scores
  23. output
  24. line 3
  25. processing
  26. False
  27. False
  28. line 3
  29. processing
  30. tapping a button
  31. 48
  32. a beep sound
  33. checking a password
  34. 57
  35. line 3
  36. True
  37. True
  38. True
  39. 190
  40. speaking a command

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