← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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