← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. tapping a button
  3. 110
  4. processing
  5. processing
  6. False
  7. output
  8. input
  9. speaking a command
  10. 71
  11. a beep sound
  12. True
  13. 16
  14. True
  15. 42
  16. adding up a bill
  17. output
  18. 490
  19. True
  20. False
  21. line 3
  22. line 3
  23. 300
  24. adding up a bill
  25. working out a tip
  26. line 3
  27. typing your age
  28. checking a password
  29. 475
  30. sorting the scores
  31. 260
  32. line 3
  33. checking a password
  34. False
  35. line 3
  36. a beep sound
  37. False
  38. True
  39. True
  40. 180

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