← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a buzz (vibration)
  2. processing
  3. 10000
  4. False
  5. line 3
  6. processing
  7. False
  8. line 3
  9. False
  10. line 3
  11. line 3
  12. working out a tip
  13. True
  14. tapping a button
  15. 325
  16. input
  17. typing your age
  18. checking a password
  19. line 2
  20. 425
  21. line 3
  22. line 3
  23. taking a photo
  24. line 3
  25. 50
  26. line 3
  27. input
  28. speaking a command
  29. 150
  30. 390
  31. line 3
  32. False
  33. 6000
  34. line 3
  35. 11000
  36. typing your age
  37. line 3
  38. tapping a button
  39. output
  40. processing

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