← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. 52
  3. line 2
  4. sorting the scores
  5. True
  6. 5000
  7. 225
  8. 60
  9. speaking a command
  10. True
  11. input
  12. line 3
  13. output
  14. False
  15. line 2
  16. taking a photo
  17. 530
  18. 66
  19. output
  20. line 3
  21. input
  22. 19
  23. output
  24. input
  25. True
  26. tapping a button
  27. a beep sound
  28. a result on screen
  29. line 3
  30. checking a password
  31. 240
  32. line 2
  33. True
  34. line 3
  35. typing your age
  36. a buzz (vibration)
  37. speaking a command
  38. a buzz (vibration)
  39. 140
  40. 8000

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