← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. 58
  3. 80
  4. processing
  5. sorting the scores
  6. input
  7. a beep sound
  8. output
  9. a pop-up message
  10. line 2
  11. line 3
  12. working out a tip
  13. True
  14. False
  15. line 3
  16. 20
  17. processing
  18. line 3
  19. line 3
  20. line 3
  21. input
  22. sorting the scores
  23. False
  24. a buzz (vibration)
  25. checking a password
  26. processing
  27. False
  28. checking a password
  29. 7000
  30. a buzz (vibration)
  31. line 3
  32. a beep sound
  33. tapping a button
  34. line 3
  35. 54
  36. a result on screen
  37. True
  38. taking a photo
  39. True
  40. line 3

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