← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. speaking a command
  3. 240
  4. False
  5. line 3
  6. typing your age
  7. True
  8. typing your age
  9. processing
  10. output
  11. working out a tip
  12. checking a password
  13. line 3
  14. working out a tip
  15. line 3
  16. line 3
  17. line 3
  18. 195
  19. input
  20. line 3
  21. False
  22. 250
  23. a buzz (vibration)
  24. a pop-up message
  25. line 3
  26. a result on screen
  27. False
  28. True
  29. tapping a button
  30. a result on screen
  31. 68
  32. 100
  33. input
  34. True
  35. False
  36. 19
  37. processing
  38. 50
  39. line 3
  40. 130

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