← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 320
  2. a result on screen
  3. 15
  4. False
  5. output
  6. checking a password
  7. input
  8. sorting the scores
  9. True
  10. typing your age
  11. 75
  12. True
  13. 13000
  14. line 3
  15. line 3
  16. typing your age
  17. processing
  18. a result on screen
  19. line 3
  20. 3000
  21. 20
  22. tapping a button
  23. False
  24. line 3
  25. 59
  26. 10000
  27. line 2
  28. line 3
  29. a beep sound
  30. output
  31. 400
  32. output
  33. 10
  34. 12000
  35. output
  36. 70
  37. True
  38. 24
  39. line 3
  40. a buzz (vibration)

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