← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. speaking a command
  2. processing
  3. 100
  4. line 2
  5. processing
  6. line 3
  7. checking a password
  8. line 2
  9. output
  10. 15
  11. typing your age
  12. a result on screen
  13. a buzz (vibration)
  14. processing
  15. line 3
  16. a buzz (vibration)
  17. a pop-up message
  18. line 3
  19. output
  20. tapping a button
  21. True
  22. True
  23. a result on screen
  24. 65
  25. 210
  26. 10000
  27. a beep sound
  28. taking a photo
  29. taking a photo
  30. True
  31. 170
  32. input
  33. True
  34. 4000
  35. 49
  36. 12000
  37. adding up a bill
  38. False
  39. line 3
  40. sorting the scores

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