← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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