← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. 10
  3. line 3
  4. processing
  5. typing your age
  6. 130
  7. False
  8. 7000
  9. taking a photo
  10. 160
  11. line 3
  12. tapping a button
  13. tapping a button
  14. a beep sound
  15. taking a photo
  16. 2000
  17. 105
  18. False
  19. 530
  20. speaking a command
  21. line 3
  22. 26
  23. input
  24. True
  25. a buzz (vibration)
  26. a pop-up message
  27. output
  28. 130
  29. 330
  30. True
  31. True
  32. line 2
  33. False
  34. 280
  35. True
  36. line 2
  37. 73
  38. False
  39. line 3
  40. 80

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