← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. typing your age
  2. False
  3. input
  4. a pop-up message
  5. output
  6. False
  7. 9000
  8. 200
  9. True
  10. line 3
  11. a result on screen
  12. speaking a command
  13. True
  14. a buzz (vibration)
  15. 13
  16. input
  17. line 2
  18. checking a password
  19. a buzz (vibration)
  20. 38
  21. True
  22. line 3
  23. 2000
  24. a beep sound
  25. False
  26. line 3
  27. line 3
  28. 300
  29. 330
  30. 41
  31. tapping a button
  32. False
  33. 290
  34. processing
  35. False
  36. False
  37. line 3
  38. 250
  39. processing
  40. 320

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