← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 18
  2. working out a tip
  3. True
  4. a beep sound
  5. input
  6. 28
  7. 2000
  8. line 2
  9. line 3
  10. typing your age
  11. 130
  12. line 2
  13. True
  14. 470
  15. 280
  16. output
  17. adding up a bill
  18. line 3
  19. 200
  20. sorting the scores
  21. a pop-up message
  22. 14
  23. processing
  24. True
  25. output
  26. line 2
  27. output
  28. 120
  29. line 3
  30. working out a tip
  31. processing
  32. True
  33. False
  34. line 3
  35. a result on screen
  36. 80
  37. a pop-up message
  38. 6000
  39. adding up a bill
  40. processing

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