← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 15000
  2. typing your age
  3. processing
  4. output
  5. input
  6. 390
  7. False
  8. sorting the scores
  9. 600
  10. output
  11. False
  12. a result on screen
  13. 47
  14. a pop-up message
  15. False
  16. False
  17. typing your age
  18. 22
  19. line 3
  20. line 3
  21. False
  22. 380
  23. a pop-up message
  24. a beep sound
  25. processing
  26. False
  27. line 3
  28. taking a photo
  29. adding up a bill
  30. False
  31. 14000
  32. True
  33. True
  34. line 3
  35. 190
  36. input
  37. False
  38. True
  39. processing
  40. True

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