← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. adding up a bill
  3. checking a password
  4. output
  5. taking a photo
  6. typing your age
  7. a beep sound
  8. a pop-up message
  9. False
  10. line 3
  11. working out a tip
  12. a result on screen
  13. processing
  14. input
  15. True
  16. tapping a button
  17. 480
  18. 195
  19. line 2
  20. line 2
  21. taking a photo
  22. True
  23. 240
  24. sorting the scores
  25. speaking a command
  26. line 3
  27. tapping a button
  28. checking a password
  29. input
  30. 175
  31. speaking a command
  32. line 3
  33. line 3
  34. line 2
  35. 200
  36. line 3
  37. a beep sound
  38. processing
  39. line 3
  40. line 3

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