← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 3000
  2. line 3
  3. tapping a button
  4. typing your age
  5. 360
  6. a result on screen
  7. 120
  8. 44
  9. 210
  10. output
  11. adding up a bill
  12. line 3
  13. line 2
  14. line 3
  15. sorting the scores
  16. True
  17. 14
  18. 4000
  19. checking a password
  20. sorting the scores
  21. True
  22. working out a tip
  23. checking a password
  24. line 3
  25. 210
  26. working out a tip
  27. True
  28. False
  29. line 3
  30. False
  31. 5000
  32. 120
  33. 570
  34. processing
  35. a beep sound
  36. line 3
  37. line 3
  38. a pop-up message
  39. processing
  40. 430

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