← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. typing your age
  2. False
  3. line 3
  4. 9000
  5. taking a photo
  6. False
  7. 45
  8. line 3
  9. False
  10. output
  11. checking a password
  12. False
  13. True
  14. line 3
  15. adding up a bill
  16. 180
  17. 15000
  18. line 3
  19. sorting the scores
  20. 44
  21. False
  22. line 3
  23. line 2
  24. adding up a bill
  25. checking a password
  26. False
  27. typing your age
  28. processing
  29. line 3
  30. line 3
  31. a result on screen
  32. output
  33. line 3
  34. True
  35. False
  36. 50
  37. input
  38. line 3
  39. input
  40. 14000

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