← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. a result on screen
  3. line 2
  4. a buzz (vibration)
  5. 220
  6. 100
  7. typing your age
  8. 270
  9. input
  10. 425
  11. a beep sound
  12. sorting the scores
  13. line 3
  14. processing
  15. line 2
  16. output
  17. processing
  18. line 3
  19. line 3
  20. line 3
  21. speaking a command
  22. False
  23. working out a tip
  24. False
  25. working out a tip
  26. checking a password
  27. 74
  28. line 2
  29. a beep sound
  30. line 3
  31. checking a password
  32. line 3
  33. 23
  34. 9000
  35. a pop-up message
  36. 300
  37. adding up a bill
  38. line 3
  39. False
  40. processing

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