← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 27
  2. 10000
  3. 8000
  4. line 3
  5. a result on screen
  6. 350
  7. False
  8. input
  9. 300
  10. 570
  11. line 3
  12. adding up a bill
  13. True
  14. typing your age
  15. input
  16. checking a password
  17. 3000
  18. 285
  19. output
  20. 180
  21. line 3
  22. taking a photo
  23. line 3
  24. 54
  25. processing
  26. line 2
  27. a beep sound
  28. line 3
  29. line 3
  30. True
  31. tapping a button
  32. a pop-up message
  33. a result on screen
  34. line 2
  35. a pop-up message
  36. 7000
  37. 6000
  38. working out a tip
  39. True
  40. typing your age

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