← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. a result on screen
  3. checking a password
  4. speaking a command
  5. 120
  6. line 2
  7. line 2
  8. processing
  9. line 3
  10. processing
  11. adding up a bill
  12. False
  13. taking a photo
  14. working out a tip
  15. a result on screen
  16. line 3
  17. sorting the scores
  18. 26
  19. False
  20. input
  21. False
  22. 360
  23. line 3
  24. output
  25. False
  26. checking a password
  27. line 2
  28. working out a tip
  29. line 2
  30. 66
  31. line 3
  32. line 2
  33. adding up a bill
  34. line 3
  35. line 2
  36. line 3
  37. a pop-up message
  38. False
  39. output
  40. input

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