← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 12000
  2. False
  3. speaking a command
  4. processing
  5. 34
  6. checking a password
  7. 15000
  8. taking a photo
  9. 48
  10. sorting the scores
  11. 11
  12. False
  13. adding up a bill
  14. input
  15. line 3
  16. 17
  17. tapping a button
  18. line 3
  19. True
  20. True
  21. 130
  22. 21
  23. processing
  24. 3000
  25. checking a password
  26. 75
  27. input
  28. adding up a bill
  29. a result on screen
  30. False
  31. a buzz (vibration)
  32. True
  33. line 3
  34. 165
  35. line 2
  36. False
  37. 4000
  38. False
  39. processing
  40. working out a tip

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