← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. line 3
  3. True
  4. line 2
  5. 5000
  6. a result on screen
  7. line 3
  8. line 3
  9. speaking a command
  10. output
  11. 23
  12. False
  13. adding up a bill
  14. 460
  15. 90
  16. 4000
  17. tapping a button
  18. 52
  19. 57
  20. a result on screen
  21. 130
  22. 140
  23. 79
  24. True
  25. a beep sound
  26. 350
  27. input
  28. checking a password
  29. False
  30. a pop-up message
  31. line 3
  32. 33
  33. False
  34. line 3
  35. 53
  36. 500
  37. sorting the scores
  38. 450
  39. 11000
  40. a beep sound

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