← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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