← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 225
  2. line 3
  3. 24
  4. adding up a bill
  5. tapping a button
  6. a buzz (vibration)
  7. a result on screen
  8. taking a photo
  9. line 3
  10. 120
  11. 44
  12. output
  13. checking a password
  14. line 2
  15. processing
  16. adding up a bill
  17. 9000
  18. 41
  19. line 3
  20. line 3
  21. taking a photo
  22. a beep sound
  23. line 3
  24. input
  25. line 3
  26. True
  27. 90
  28. 27
  29. 130
  30. line 2
  31. line 3
  32. 10
  33. 180
  34. True
  35. speaking a command
  36. False
  37. False
  38. working out a tip
  39. processing
  40. a pop-up message

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