← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 450
  2. tapping a button
  3. a buzz (vibration)
  4. line 3
  5. 64
  6. speaking a command
  7. taking a photo
  8. input
  9. line 3
  10. taking a photo
  11. line 3
  12. typing your age
  13. checking a password
  14. a beep sound
  15. line 3
  16. 340
  17. 4000
  18. 270
  19. 150
  20. False
  21. 100
  22. adding up a bill
  23. 360
  24. True
  25. line 3
  26. a pop-up message
  27. line 3
  28. True
  29. 180
  30. 390
  31. 30
  32. line 3
  33. a result on screen
  34. 310
  35. typing your age
  36. 380
  37. input
  38. a result on screen
  39. working out a tip
  40. line 3

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