← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. checking a password
  3. line 3
  4. a pop-up message
  5. input
  6. output
  7. line 2
  8. False
  9. a buzz (vibration)
  10. speaking a command
  11. taking a photo
  12. True
  13. output
  14. False
  15. 5000
  16. False
  17. 430
  18. 13
  19. a result on screen
  20. tapping a button
  21. 14000
  22. speaking a command
  23. adding up a bill
  24. True
  25. line 2
  26. line 3
  27. a buzz (vibration)
  28. input
  29. processing
  30. 54
  31. 11000
  32. 2000
  33. line 3
  34. False
  35. processing
  36. False
  37. output
  38. 240
  39. 12000
  40. False

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