← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. working out a tip
  2. line 2
  3. 17
  4. adding up a bill
  5. line 2
  6. True
  7. 47
  8. taking a photo
  9. 34
  10. False
  11. line 3
  12. False
  13. a beep sound
  14. 53
  15. a buzz (vibration)
  16. output
  17. typing your age
  18. 510
  19. a buzz (vibration)
  20. True
  21. line 3
  22. line 3
  23. a result on screen
  24. 30
  25. processing
  26. False
  27. line 3
  28. 24
  29. output
  30. False
  31. line 2
  32. False
  33. sorting the scores
  34. 340
  35. a pop-up message
  36. False
  37. processing
  38. 255
  39. line 3
  40. line 3

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