← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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