← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. a pop-up message
  3. True
  4. typing your age
  5. processing
  6. taking a photo
  7. 31
  8. 270
  9. output
  10. 2000
  11. processing
  12. speaking a command
  13. a pop-up message
  14. a result on screen
  15. 54
  16. checking a password
  17. line 3
  18. input
  19. False
  20. False
  21. processing
  22. a result on screen
  23. tapping a button
  24. output
  25. input
  26. adding up a bill
  27. line 3
  28. 300
  29. line 2
  30. tapping a button
  31. 90
  32. 60
  33. 500
  34. 12000
  35. True
  36. typing your age
  37. 30
  38. adding up a bill
  39. 380
  40. False

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