← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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