← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 300
  2. a buzz (vibration)
  3. speaking a command
  4. adding up a bill
  5. taking a photo
  6. True
  7. a pop-up message
  8. output
  9. processing
  10. checking a password
  11. 3000
  12. 66
  13. input
  14. a buzz (vibration)
  15. line 3
  16. typing your age
  17. False
  18. 79
  19. False
  20. 140
  21. 50
  22. line 3
  23. input
  24. 30
  25. line 3
  26. 46
  27. line 2
  28. False
  29. 110
  30. line 3
  31. line 3
  32. a beep sound
  33. line 2
  34. True
  35. True
  36. False
  37. line 3
  38. 51
  39. line 3
  40. processing

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