← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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