← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. taking a photo
  2. taking a photo
  3. speaking a command
  4. line 3
  5. checking a password
  6. input
  7. line 3
  8. tapping a button
  9. 15000
  10. line 3
  11. 260
  12. True
  13. 3000
  14. a buzz (vibration)
  15. False
  16. output
  17. output
  18. line 3
  19. line 3
  20. a buzz (vibration)
  21. processing
  22. 70
  23. processing
  24. working out a tip
  25. processing
  26. 175
  27. line 3
  28. processing
  29. 10000
  30. 27
  31. 375
  32. line 3
  33. 260
  34. 9000
  35. input
  36. a result on screen
  37. tapping a button
  38. adding up a bill
  39. adding up a bill
  40. line 3

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