← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. tapping a button
  2. input
  3. processing
  4. True
  5. 75
  6. line 3
  7. input
  8. line 3
  9. 530
  10. line 3
  11. a beep sound
  12. True
  13. taking a photo
  14. line 3
  15. checking a password
  16. line 3
  17. speaking a command
  18. False
  19. output
  20. line 3
  21. False
  22. a result on screen
  23. typing your age
  24. 30
  25. a result on screen
  26. a pop-up message
  27. line 3
  28. False
  29. line 3
  30. 6000
  31. line 3
  32. True
  33. 56
  34. line 3
  35. 60
  36. line 3
  37. a beep sound
  38. 21
  39. 19
  40. output

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