← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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