← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. a buzz (vibration)
  3. input
  4. speaking a command
  5. taking a photo
  6. 105
  7. processing
  8. adding up a bill
  9. line 3
  10. True
  11. working out a tip
  12. 68
  13. 190
  14. tapping a button
  15. 370
  16. False
  17. line 3
  18. a result on screen
  19. 60
  20. checking a password
  21. 12000
  22. line 3
  23. input
  24. adding up a bill
  25. line 3
  26. checking a password
  27. 69
  28. line 3
  29. processing
  30. 195
  31. a beep sound
  32. line 3
  33. 70
  34. 170
  35. 7000
  36. False
  37. 69
  38. a pop-up message
  39. input
  40. line 3

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