← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 26
  2. line 2
  3. output
  4. line 3
  5. line 3
  6. line 3
  7. typing your age
  8. 80
  9. line 3
  10. line 2
  11. 150
  12. sorting the scores
  13. adding up a bill
  14. line 3
  15. 45
  16. line 3
  17. False
  18. processing
  19. a pop-up message
  20. input
  21. line 3
  22. a buzz (vibration)
  23. a result on screen
  24. line 3
  25. line 3
  26. 2000
  27. False
  28. False
  29. processing
  30. line 3
  31. 130
  32. speaking a command
  33. a beep sound
  34. taking a photo
  35. a pop-up message
  36. 380
  37. taking a photo
  38. processing
  39. output
  40. line 3

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