← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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