← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 36
  2. True
  3. adding up a bill
  4. True
  5. 13
  6. True
  7. 35
  8. True
  9. False
  10. output
  11. line 3
  12. typing your age
  13. output
  14. line 3
  15. line 2
  16. 28
  17. 225
  18. 540
  19. True
  20. processing
  21. adding up a bill
  22. False
  23. 330
  24. line 3
  25. line 3
  26. True
  27. taking a photo
  28. line 3
  29. 12000
  30. input
  31. 370
  32. False
  33. 70
  34. line 3
  35. a beep sound
  36. line 3
  37. line 3
  38. a buzz (vibration)
  39. working out a tip
  40. input

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