← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a buzz (vibration)
  2. line 3
  3. line 2
  4. 6000
  5. line 3
  6. input
  7. checking a password
  8. line 3
  9. 9000
  10. 530
  11. a pop-up message
  12. True
  13. adding up a bill
  14. False
  15. True
  16. working out a tip
  17. 380
  18. tapping a button
  19. line 2
  20. False
  21. line 3
  22. True
  23. output
  24. False
  25. True
  26. taking a photo
  27. a result on screen
  28. 290
  29. 550
  30. 600
  31. 170
  32. speaking a command
  33. line 3
  34. processing
  35. line 2
  36. input
  37. line 2
  38. 120
  39. line 3
  40. 80

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