← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. line 3
  3. 470
  4. processing
  5. False
  6. sorting the scores
  7. line 3
  8. adding up a bill
  9. adding up a bill
  10. line 2
  11. line 2
  12. line 2
  13. input
  14. line 3
  15. processing
  16. tapping a button
  17. input
  18. taking a photo
  19. 42
  20. output
  21. a beep sound
  22. line 3
  23. False
  24. output
  25. typing your age
  26. line 3
  27. line 2
  28. False
  29. False
  30. a result on screen
  31. 10000
  32. 55
  33. line 3
  34. checking a password
  35. line 3
  36. 220
  37. False
  38. True
  39. output
  40. False

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