← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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