← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. working out a tip
  2. input
  3. speaking a command
  4. a buzz (vibration)
  5. processing
  6. 10000
  7. line 3
  8. 15000
  9. tapping a button
  10. True
  11. typing your age
  12. True
  13. line 3
  14. False
  15. True
  16. True
  17. 135
  18. sorting the scores
  19. line 3
  20. 380
  21. True
  22. False
  23. 250
  24. line 3
  25. taking a photo
  26. line 3
  27. False
  28. 100
  29. line 2
  30. processing
  31. adding up a bill
  32. True
  33. line 3
  34. line 3
  35. output
  36. 26
  37. 58
  38. line 3
  39. a beep sound
  40. line 3

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