← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. working out a tip
  2. output
  3. 255
  4. line 3
  5. line 3
  6. a result on screen
  7. typing your age
  8. processing
  9. line 3
  10. input
  11. line 3
  12. a buzz (vibration)
  13. input
  14. line 3
  15. True
  16. 62
  17. 37
  18. True
  19. False
  20. speaking a command
  21. line 3
  22. 450
  23. a pop-up message
  24. 180
  25. False
  26. taking a photo
  27. 480
  28. a beep sound
  29. 13000
  30. line 3
  31. adding up a bill
  32. True
  33. 49
  34. line 3
  35. a pop-up message
  36. checking a password
  37. output
  38. speaking a command
  39. adding up a bill
  40. 110

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