← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 240
  2. output
  3. True
  4. output
  5. line 3
  6. line 3
  7. False
  8. working out a tip
  9. a buzz (vibration)
  10. a beep sound
  11. False
  12. True
  13. working out a tip
  14. adding up a bill
  15. False
  16. 44
  17. 27
  18. processing
  19. input
  20. processing
  21. processing
  22. True
  23. 450
  24. False
  25. output
  26. sorting the scores
  27. 210
  28. line 3
  29. 75
  30. 36
  31. 150
  32. a pop-up message
  33. line 3
  34. line 2
  35. 240
  36. True
  37. line 2
  38. False
  39. line 3
  40. checking a password

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