← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. processing
  3. True
  4. True
  5. line 2
  6. 4000
  7. input
  8. processing
  9. line 3
  10. 120
  11. adding up a bill
  12. 2000
  13. input
  14. True
  15. input
  16. True
  17. processing
  18. False
  19. 140
  20. line 3
  21. False
  22. output
  23. False
  24. a beep sound
  25. working out a tip
  26. tapping a button
  27. line 2
  28. line 3
  29. True
  30. 54
  31. False
  32. taking a photo
  33. line 3
  34. a beep sound
  35. checking a password
  36. a pop-up message
  37. 10000
  38. line 3
  39. False
  40. 430

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