← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. 57
  3. line 3
  4. line 3
  5. input
  6. typing your age
  7. line 3
  8. 13000
  9. speaking a command
  10. a beep sound
  11. False
  12. True
  13. 4000
  14. 14000
  15. line 2
  16. tapping a button
  17. line 3
  18. tapping a button
  19. checking a password
  20. taking a photo
  21. True
  22. processing
  23. output
  24. taking a photo
  25. sorting the scores
  26. input
  27. a pop-up message
  28. a pop-up message
  29. 70
  30. 5000
  31. line 3
  32. True
  33. 60
  34. True
  35. 90
  36. output
  37. 15000
  38. a result on screen
  39. 35
  40. 210

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