← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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