← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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