← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 2000
  2. line 2
  3. line 3
  4. checking a password
  5. 370
  6. adding up a bill
  7. line 2
  8. True
  9. a buzz (vibration)
  10. taking a photo
  11. input
  12. a pop-up message
  13. 8000
  14. False
  15. 3000
  16. line 3
  17. checking a password
  18. line 3
  19. a result on screen
  20. False
  21. False
  22. working out a tip
  23. False
  24. output
  25. tapping a button
  26. 170
  27. line 3
  28. input
  29. line 3
  30. 310
  31. a result on screen
  32. True
  33. line 3
  34. 510
  35. line 3
  36. 33
  37. processing
  38. input
  39. taking a photo
  40. 105

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