← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 74
  2. 13000
  3. typing your age
  4. output
  5. line 3
  6. processing
  7. a result on screen
  8. True
  9. False
  10. line 3
  11. a beep sound
  12. 520
  13. processing
  14. False
  15. taking a photo
  16. 195
  17. line 3
  18. input
  19. a pop-up message
  20. 75
  21. a buzz (vibration)
  22. 4000
  23. 76
  24. 480
  25. line 3
  26. 210
  27. True
  28. line 3
  29. working out a tip
  30. speaking a command
  31. taking a photo
  32. line 3
  33. 3000
  34. 28
  35. line 3
  36. True
  37. processing
  38. 490
  39. False
  40. adding up a bill

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