← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. 52
  3. 140
  4. checking a password
  5. line 3
  6. True
  7. a buzz (vibration)
  8. tapping a button
  9. 6000
  10. taking a photo
  11. True
  12. a buzz (vibration)
  13. tapping a button
  14. typing your age
  15. taking a photo
  16. processing
  17. 2000
  18. 360
  19. a pop-up message
  20. True
  21. output
  22. 470
  23. input
  24. a beep sound
  25. False
  26. 27
  27. 64
  28. line 3
  29. speaking a command
  30. 200
  31. True
  32. line 3
  33. line 3
  34. 180
  35. 8000
  36. line 3
  37. line 2
  38. input
  39. line 3
  40. processing

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