← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. checking a password
  3. line 3
  4. True
  5. line 3
  6. a result on screen
  7. line 3
  8. line 3
  9. False
  10. speaking a command
  11. a buzz (vibration)
  12. 36
  13. line 3
  14. sorting the scores
  15. True
  16. line 2
  17. False
  18. 210
  19. line 3
  20. line 3
  21. 200
  22. True
  23. 3000
  24. line 3
  25. line 3
  26. 60
  27. processing
  28. False
  29. taking a photo
  30. False
  31. False
  32. line 3
  33. 4000
  34. a result on screen
  35. line 3
  36. working out a tip
  37. 200
  38. 180
  39. processing
  40. checking a password

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