← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. True
  3. processing
  4. line 3
  5. line 2
  6. a beep sound
  7. a buzz (vibration)
  8. a result on screen
  9. tapping a button
  10. adding up a bill
  11. working out a tip
  12. sorting the scores
  13. typing your age
  14. line 3
  15. speaking a command
  16. True
  17. line 3
  18. speaking a command
  19. processing
  20. line 2
  21. a pop-up message
  22. line 3
  23. line 3
  24. line 2
  25. output
  26. typing your age
  27. taking a photo
  28. input
  29. 530
  30. line 3
  31. processing
  32. False
  33. 390
  34. line 3
  35. line 3
  36. 2000
  37. 135
  38. 510
  39. 35
  40. a result on screen

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