← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. speaking a command
  3. False
  4. speaking a command
  5. 230
  6. 9000
  7. line 3
  8. working out a tip
  9. line 3
  10. working out a tip
  11. 64
  12. typing your age
  13. False
  14. True
  15. 50
  16. True
  17. a pop-up message
  18. 175
  19. a result on screen
  20. input
  21. True
  22. 370
  23. 54
  24. 17
  25. tapping a button
  26. 3000
  27. 11
  28. False
  29. sorting the scores
  30. False
  31. 12000
  32. adding up a bill
  33. adding up a bill
  34. line 3
  35. checking a password
  36. line 3
  37. line 3
  38. line 2
  39. a result on screen
  40. processing

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