← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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