← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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