← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. tapping a button
  2. line 3
  3. a buzz (vibration)
  4. taking a photo
  5. line 3
  6. speaking a command
  7. line 3
  8. True
  9. True
  10. line 3
  11. working out a tip
  12. 57
  13. line 3
  14. sorting the scores
  15. tapping a button
  16. line 3
  17. output
  18. input
  19. True
  20. typing your age
  21. a beep sound
  22. adding up a bill
  23. 475
  24. 3000
  25. line 3
  26. 420
  27. line 2
  28. 440
  29. output
  30. line 3
  31. processing
  32. 120
  33. sorting the scores
  34. 280
  35. line 2
  36. a buzz (vibration)
  37. False
  38. input
  39. True
  40. a result on screen

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