← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. 39
  3. False
  4. line 2
  5. processing
  6. adding up a bill
  7. 400
  8. a result on screen
  9. 275
  10. False
  11. 55
  12. True
  13. input
  14. input
  15. 15000
  16. line 3
  17. processing
  18. line 2
  19. 90
  20. line 3
  21. True
  22. typing your age
  23. 240
  24. taking a photo
  25. input
  26. False
  27. False
  28. a pop-up message
  29. typing your age
  30. a beep sound
  31. 190
  32. line 2
  33. adding up a bill
  34. line 3
  35. 180
  36. 200
  37. output
  38. 3000
  39. checking a password
  40. 180

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