← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. working out a tip
  2. 300
  3. typing your age
  4. False
  5. line 3
  6. line 3
  7. 520
  8. line 3
  9. processing
  10. a beep sound
  11. 8000
  12. sorting the scores
  13. input
  14. False
  15. taking a photo
  16. True
  17. line 3
  18. typing your age
  19. output
  20. checking a password
  21. taking a photo
  22. True
  23. line 2
  24. 9000
  25. line 3
  26. tapping a button
  27. line 3
  28. False
  29. line 3
  30. 13000
  31. 62
  32. a beep sound
  33. 300
  34. False
  35. speaking a command
  36. 36
  37. a pop-up message
  38. True
  39. input
  40. 160

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