← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. tapping a button
  3. a buzz (vibration)
  4. True
  5. 52
  6. adding up a bill
  7. typing your age
  8. line 3
  9. checking a password
  10. output
  11. processing
  12. input
  13. line 3
  14. sorting the scores
  15. line 3
  16. line 3
  17. input
  18. working out a tip
  19. False
  20. 11000
  21. 150
  22. typing your age
  23. line 3
  24. a pop-up message
  25. 290
  26. 180
  27. line 2
  28. a beep sound
  29. True
  30. 180
  31. line 3
  32. line 3
  33. line 2
  34. processing
  35. 10000
  36. line 3
  37. True
  38. checking a password
  39. speaking a command
  40. 140

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