← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. line 2
  3. 480
  4. 36
  5. line 3
  6. line 3
  7. working out a tip
  8. sorting the scores
  9. False
  10. typing your age
  11. 9000
  12. a pop-up message
  13. tapping a button
  14. True
  15. 44
  16. 90
  17. tapping a button
  18. input
  19. typing your age
  20. speaking a command
  21. speaking a command
  22. True
  23. adding up a bill
  24. line 3
  25. True
  26. checking a password
  27. output
  28. sorting the scores
  29. 520
  30. 120
  31. 320
  32. False
  33. a result on screen
  34. line 3
  35. processing
  36. working out a tip
  37. a pop-up message
  38. False
  39. line 3
  40. 60

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