← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. checking a password
  2. output
  3. False
  4. line 3
  5. 210
  6. 5000
  7. speaking a command
  8. 33
  9. line 3
  10. 300
  11. typing your age
  12. sorting the scores
  13. True
  14. a beep sound
  15. line 3
  16. line 3
  17. True
  18. line 3
  19. checking a password
  20. 475
  21. speaking a command
  22. input
  23. line 3
  24. 4000
  25. 61
  26. processing
  27. False
  28. processing
  29. processing
  30. tapping a button
  31. 6000
  32. a buzz (vibration)
  33. a beep sound
  34. line 3
  35. 17
  36. adding up a bill
  37. input
  38. line 3
  39. line 3
  40. 150

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