← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. tapping a button
  3. line 3
  4. False
  5. sorting the scores
  6. adding up a bill
  7. speaking a command
  8. checking a password
  9. 68
  10. line 3
  11. 7000
  12. line 3
  13. False
  14. False
  15. 47
  16. 18
  17. line 3
  18. line 3
  19. line 3
  20. output
  21. a pop-up message
  22. line 3
  23. 250
  24. typing your age
  25. False
  26. working out a tip
  27. 540
  28. speaking a command
  29. a buzz (vibration)
  30. adding up a bill
  31. line 3
  32. line 2
  33. input
  34. a buzz (vibration)
  35. working out a tip
  36. 120
  37. 250
  38. 220
  39. line 3
  40. tapping a button

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