← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a beep sound
  2. line 3
  3. a result on screen
  4. processing
  5. 19
  6. True
  7. line 2
  8. line 3
  9. 8000
  10. processing
  11. output
  12. a pop-up message
  13. line 3
  14. line 3
  15. working out a tip
  16. tapping a button
  17. speaking a command
  18. True
  19. 220
  20. False
  21. line 3
  22. adding up a bill
  23. input
  24. typing your age
  25. True
  26. 11000
  27. 75
  28. True
  29. 20
  30. taking a photo
  31. working out a tip
  32. output
  33. speaking a command
  34. 12000
  35. tapping a button
  36. 2000
  37. sorting the scores
  38. line 3
  39. True
  40. adding up a bill

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