← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. adding up a bill
  3. taking a photo
  4. working out a tip
  5. typing your age
  6. output
  7. tapping a button
  8. line 3
  9. input
  10. 150
  11. a result on screen
  12. a result on screen
  13. input
  14. line 3
  15. input
  16. processing
  17. line 3
  18. input
  19. 69
  20. line 3
  21. line 3
  22. 79
  23. 10000
  24. False
  25. line 2
  26. sorting the scores
  27. 330
  28. a beep sound
  29. line 3
  30. 200
  31. 520
  32. True
  33. 4000
  34. a beep sound
  35. line 3
  36. 180
  37. 9000
  38. line 3
  39. 150
  40. checking a password

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