← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. a result on screen
  3. line 3
  4. 475
  5. output
  6. False
  7. 19
  8. input
  9. line 3
  10. working out a tip
  11. line 3
  12. False
  13. line 2
  14. processing
  15. output
  16. taking a photo
  17. 51
  18. False
  19. True
  20. input
  21. 3000
  22. a buzz (vibration)
  23. line 3
  24. typing your age
  25. checking a password
  26. line 3
  27. 285
  28. 100
  29. speaking a command
  30. False
  31. input
  32. True
  33. a result on screen
  34. speaking a command
  35. line 3
  36. typing your age
  37. False
  38. sorting the scores
  39. False
  40. a pop-up message

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