← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a beep sound
  2. line 2
  3. taking a photo
  4. a buzz (vibration)
  5. line 3
  6. checking a password
  7. False
  8. processing
  9. False
  10. a beep sound
  11. line 3
  12. 270
  13. 52
  14. speaking a command
  15. a pop-up message
  16. True
  17. False
  18. True
  19. True
  20. line 3
  21. typing your age
  22. line 3
  23. False
  24. True
  25. taking a photo
  26. input
  27. 150
  28. 490
  29. a buzz (vibration)
  30. False
  31. output
  32. output
  33. True
  34. adding up a bill
  35. True
  36. 64
  37. processing
  38. 4000
  39. True
  40. 260

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