← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. adding up a bill
  3. True
  4. line 3
  5. False
  6. working out a tip
  7. False
  8. line 3
  9. line 3
  10. line 3
  11. 69
  12. False
  13. tapping a button
  14. 74
  15. line 3
  16. adding up a bill
  17. line 3
  18. line 2
  19. 130
  20. speaking a command
  21. line 3
  22. 200
  23. 9000
  24. a result on screen
  25. True
  26. 370
  27. 66
  28. 47
  29. line 3
  30. taking a photo
  31. tapping a button
  32. line 3
  33. False
  34. working out a tip
  35. False
  36. line 3
  37. True
  38. True
  39. sorting the scores
  40. input

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