← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. False
  3. False
  4. line 3
  5. line 3
  6. taking a photo
  7. line 2
  8. speaking a command
  9. taking a photo
  10. 7000
  11. True
  12. typing your age
  13. line 3
  14. typing your age
  15. line 2
  16. False
  17. a result on screen
  18. 300
  19. False
  20. False
  21. processing
  22. input
  23. line 2
  24. 18
  25. line 3
  26. 5000
  27. line 2
  28. a result on screen
  29. 160
  30. 530
  31. working out a tip
  32. input
  33. False
  34. False
  35. tapping a button
  36. line 3
  37. 80
  38. line 3
  39. True
  40. input

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