← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 490
  2. sorting the scores
  3. 2000
  4. checking a password
  5. adding up a bill
  6. a buzz (vibration)
  7. True
  8. 110
  9. input
  10. checking a password
  11. typing your age
  12. a pop-up message
  13. input
  14. output
  15. 5000
  16. True
  17. a result on screen
  18. adding up a bill
  19. a pop-up message
  20. False
  21. output
  22. sorting the scores
  23. 9000
  24. 37
  25. speaking a command
  26. processing
  27. 180
  28. line 3
  29. True
  30. 27
  31. processing
  32. line 3
  33. 72
  34. 80
  35. output
  36. 430
  37. line 2
  38. taking a photo
  39. 135
  40. line 3

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