← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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