← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a buzz (vibration)
  2. False
  3. checking a password
  4. adding up a bill
  5. input
  6. line 3
  7. typing your age
  8. False
  9. taking a photo
  10. True
  11. True
  12. input
  13. True
  14. line 2
  15. checking a password
  16. 90
  17. line 3
  18. True
  19. output
  20. tapping a button
  21. line 3
  22. False
  23. False
  24. line 3
  25. False
  26. False
  27. a result on screen
  28. input
  29. 6000
  30. False
  31. input
  32. sorting the scores
  33. line 3
  34. line 3
  35. 73
  36. 10000
  37. line 2
  38. a beep sound
  39. line 3
  40. 450

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