← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 22
  2. a buzz (vibration)
  3. 90
  4. a beep sound
  5. processing
  6. line 3
  7. speaking a command
  8. True
  9. checking a password
  10. True
  11. 360
  12. line 3
  13. 90
  14. 5000
  15. line 3
  16. taking a photo
  17. False
  18. 285
  19. sorting the scores
  20. sorting the scores
  21. tapping a button
  22. True
  23. line 3
  24. 160
  25. 29
  26. line 3
  27. line 3
  28. a beep sound
  29. input
  30. a pop-up message
  31. taking a photo
  32. output
  33. 65
  34. line 2
  35. False
  36. checking a password
  37. line 3
  38. line 2
  39. output
  40. 48

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