← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. typing your age
  3. line 3
  4. working out a tip
  5. True
  6. output
  7. input
  8. taking a photo
  9. taking a photo
  10. output
  11. line 3
  12. tapping a button
  13. True
  14. adding up a bill
  15. False
  16. input
  17. 60
  18. line 3
  19. line 3
  20. a result on screen
  21. input
  22. a pop-up message
  23. output
  24. line 3
  25. sorting the scores
  26. a beep sound
  27. processing
  28. tapping a button
  29. line 3
  30. speaking a command
  31. 180
  32. a pop-up message
  33. 120
  34. 160
  35. 69
  36. 450
  37. line 3
  38. 2000
  39. 220
  40. 540

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