← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. True
  3. 250
  4. line 3
  5. line 2
  6. a result on screen
  7. 480
  8. typing your age
  9. a buzz (vibration)
  10. line 2
  11. 11000
  12. False
  13. line 3
  14. False
  15. adding up a bill
  16. line 2
  17. line 3
  18. adding up a bill
  19. sorting the scores
  20. output
  21. output
  22. line 3
  23. 100
  24. a buzz (vibration)
  25. line 3
  26. False
  27. input
  28. input
  29. taking a photo
  30. True
  31. line 3
  32. typing your age
  33. 50
  34. tapping a button
  35. tapping a button
  36. False
  37. output
  38. taking a photo
  39. 180
  40. 44

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