← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. tapping a button
  3. 25
  4. False
  5. typing your age
  6. False
  7. line 3
  8. 2000
  9. True
  10. 7000
  11. line 3
  12. a pop-up message
  13. False
  14. line 3
  15. 6000
  16. 66
  17. True
  18. 40
  19. working out a tip
  20. adding up a bill
  21. 380
  22. adding up a bill
  23. line 3
  24. 370
  25. line 3
  26. line 3
  27. input
  28. 400
  29. a pop-up message
  30. speaking a command
  31. line 3
  32. line 2
  33. line 3
  34. 500
  35. a buzz (vibration)
  36. a buzz (vibration)
  37. line 3
  38. 65
  39. False
  40. line 3

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