← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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