← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. True
  3. a beep sound
  4. 8000
  5. line 2
  6. input
  7. processing
  8. line 3
  9. 79
  10. a result on screen
  11. 40
  12. line 3
  13. True
  14. True
  15. line 2
  16. taking a photo
  17. processing
  18. input
  19. 30
  20. 10000
  21. speaking a command
  22. 6000
  23. False
  24. line 3
  25. a buzz (vibration)
  26. line 3
  27. True
  28. typing your age
  29. sorting the scores
  30. 32
  31. output
  32. line 3
  33. True
  34. 400
  35. tapping a button
  36. 570
  37. False
  38. speaking a command
  39. taking a photo
  40. 180

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