← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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