← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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