← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. a pop-up message
  3. False
  4. adding up a bill
  5. 70
  6. 20
  7. line 2
  8. line 3
  9. line 3
  10. taking a photo
  11. sorting the scores
  12. line 3
  13. 420
  14. taking a photo
  15. checking a password
  16. input
  17. True
  18. 40
  19. False
  20. output
  21. False
  22. 10000
  23. 510
  24. checking a password
  25. 160
  26. processing
  27. False
  28. a result on screen
  29. tapping a button
  30. line 2
  31. True
  32. line 3
  33. input
  34. processing
  35. line 3
  36. False
  37. 600
  38. speaking a command
  39. adding up a bill
  40. False

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