← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. taking a photo
  3. working out a tip
  4. False
  5. a beep sound
  6. processing
  7. sorting the scores
  8. line 3
  9. False
  10. a buzz (vibration)
  11. 20
  12. typing your age
  13. line 2
  14. 380
  15. True
  16. checking a password
  17. 510
  18. False
  19. adding up a bill
  20. line 3
  21. line 2
  22. output
  23. line 2
  24. input
  25. line 3
  26. 90
  27. False
  28. True
  29. processing
  30. line 2
  31. 9000
  32. 7000
  33. typing your age
  34. 100
  35. 37
  36. False
  37. a result on screen
  38. line 3
  39. input
  40. 280

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