← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. 28
  3. line 3
  4. input
  5. False
  6. a pop-up message
  7. input
  8. output
  9. 570
  10. 45
  11. sorting the scores
  12. speaking a command
  13. line 3
  14. output
  15. line 2
  16. 40
  17. 230
  18. line 3
  19. 260
  20. tapping a button
  21. typing your age
  22. 48
  23. 5000
  24. 330
  25. a buzz (vibration)
  26. True
  27. a buzz (vibration)
  28. 300
  29. adding up a bill
  30. 105
  31. 550
  32. typing your age
  33. 64
  34. line 3
  35. processing
  36. False
  37. a pop-up message
  38. input
  39. True
  40. line 3

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