← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. line 3
  3. 300
  4. line 3
  5. 13000
  6. True
  7. True
  8. speaking a command
  9. 50
  10. tapping a button
  11. output
  12. True
  13. line 3
  14. line 2
  15. typing your age
  16. 55
  17. line 3
  18. working out a tip
  19. 200
  20. 380
  21. taking a photo
  22. a buzz (vibration)
  23. line 3
  24. line 2
  25. 23
  26. processing
  27. False
  28. True
  29. working out a tip
  30. 80
  31. line 3
  32. 225
  33. line 3
  34. line 3
  35. 210
  36. 120
  37. False
  38. processing
  39. line 2
  40. tapping a button

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