← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. line 3
  3. sorting the scores
  4. input
  5. 200
  6. 360
  7. line 3
  8. line 3
  9. 160
  10. True
  11. processing
  12. True
  13. output
  14. tapping a button
  15. tapping a button
  16. 110
  17. line 3
  18. a beep sound
  19. processing
  20. 2000
  21. adding up a bill
  22. processing
  23. output
  24. 15000
  25. speaking a command
  26. 11000
  27. speaking a command
  28. a pop-up message
  29. typing your age
  30. 195
  31. True
  32. 60
  33. line 3
  34. 50
  35. a result on screen
  36. 61
  37. 400
  38. False
  39. 30
  40. typing your age

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