← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. line 2
  3. line 3
  4. False
  5. typing your age
  6. a buzz (vibration)
  7. False
  8. adding up a bill
  9. a pop-up message
  10. a pop-up message
  11. processing
  12. input
  13. a beep sound
  14. 13000
  15. line 3
  16. input
  17. a result on screen
  18. 58
  19. False
  20. sorting the scores
  21. adding up a bill
  22. 11000
  23. line 2
  24. line 3
  25. 375
  26. line 3
  27. output
  28. 90
  29. output
  30. speaking a command
  31. False
  32. 490
  33. a result on screen
  34. line 3
  35. False
  36. 430
  37. 310
  38. line 3
  39. output
  40. False

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