← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. taking a photo
  3. output
  4. line 2
  5. 14
  6. speaking a command
  7. 80
  8. True
  9. working out a tip
  10. tapping a button
  11. line 3
  12. 75
  13. 50
  14. adding up a bill
  15. line 3
  16. 10000
  17. 21
  18. output
  19. line 3
  20. 60
  21. 350
  22. line 3
  23. a result on screen
  24. typing your age
  25. line 3
  26. 8000
  27. False
  28. input
  29. 14000
  30. checking a password
  31. False
  32. 480
  33. False
  34. line 2
  35. line 3
  36. 190
  37. speaking a command
  38. output
  39. 300
  40. 9000

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