← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. 8000
  3. line 3
  4. line 3
  5. tapping a button
  6. taking a photo
  7. line 3
  8. speaking a command
  9. sorting the scores
  10. a result on screen
  11. output
  12. 410
  13. input
  14. processing
  15. True
  16. a buzz (vibration)
  17. line 3
  18. False
  19. line 2
  20. input
  21. output
  22. processing
  23. False
  24. line 3
  25. checking a password
  26. False
  27. 210
  28. a beep sound
  29. processing
  30. speaking a command
  31. adding up a bill
  32. line 3
  33. typing your age
  34. line 3
  35. typing your age
  36. 270
  37. True
  38. 12000
  39. line 3
  40. True

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