← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 70
  2. True
  3. processing
  4. a pop-up message
  5. working out a tip
  6. adding up a bill
  7. False
  8. line 3
  9. False
  10. line 3
  11. False
  12. 390
  13. processing
  14. tapping a button
  15. taking a photo
  16. line 3
  17. a result on screen
  18. a pop-up message
  19. line 2
  20. output
  21. 60
  22. 170
  23. 65
  24. adding up a bill
  25. True
  26. False
  27. 240
  28. 80
  29. sorting the scores
  30. 75
  31. 300
  32. 19
  33. False
  34. 490
  35. 4000
  36. 17
  37. 11000
  38. 22
  39. True
  40. line 3

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