← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. checking a password
  2. True
  3. 10000
  4. sorting the scores
  5. adding up a bill
  6. tapping a button
  7. 120
  8. 120
  9. output
  10. speaking a command
  11. a pop-up message
  12. True
  13. False
  14. 36
  15. tapping a button
  16. line 2
  17. processing
  18. True
  19. 32
  20. 190
  21. typing your age
  22. input
  23. 240
  24. line 3
  25. 73
  26. a beep sound
  27. 26
  28. 430
  29. True
  30. line 3
  31. line 3
  32. True
  33. line 3
  34. speaking a command
  35. processing
  36. line 3
  37. processing
  38. 39
  39. True
  40. 35

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