← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a beep sound
  2. True
  3. processing
  4. processing
  5. True
  6. tapping a button
  7. False
  8. 59
  9. False
  10. 53
  11. line 3
  12. 160
  13. 580
  14. True
  15. False
  16. False
  17. input
  18. False
  19. a result on screen
  20. False
  21. 100
  22. 270
  23. working out a tip
  24. input
  25. output
  26. line 3
  27. 380
  28. speaking a command
  29. False
  30. working out a tip
  31. True
  32. a result on screen
  33. speaking a command
  34. line 3
  35. a pop-up message
  36. checking a password
  37. True
  38. line 2
  39. taking a photo
  40. a buzz (vibration)

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