← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 32
  2. speaking a command
  3. a pop-up message
  4. True
  5. 125
  6. output
  7. True
  8. True
  9. 325
  10. line 3
  11. tapping a button
  12. 310
  13. a beep sound
  14. output
  15. line 2
  16. sorting the scores
  17. 45
  18. line 3
  19. processing
  20. line 3
  21. 320
  22. adding up a bill
  23. 100
  24. working out a tip
  25. True
  26. a pop-up message
  27. line 2
  28. input
  29. typing your age
  30. input
  31. line 3
  32. 78
  33. checking a password
  34. 38
  35. a beep sound
  36. taking a photo
  37. True
  38. 46
  39. False
  40. a buzz (vibration)

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