← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. 530
  3. line 3
  4. sorting the scores
  5. 270
  6. checking a password
  7. 390
  8. line 3
  9. a beep sound
  10. a buzz (vibration)
  11. 125
  12. True
  13. line 3
  14. checking a password
  15. 240
  16. a beep sound
  17. True
  18. False
  19. speaking a command
  20. True
  21. processing
  22. a pop-up message
  23. output
  24. True
  25. input
  26. line 3
  27. False
  28. a pop-up message
  29. line 3
  30. False
  31. a buzz (vibration)
  32. False
  33. 190
  34. a result on screen
  35. line 3
  36. line 3
  37. line 3
  38. taking a photo
  39. input
  40. line 3

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