← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 190
  3. 480
  4. sorting the scores
  5. input
  6. output
  7. output
  8. speaking a command
  9. False
  10. working out a tip
  11. typing your age
  12. 120
  13. a result on screen
  14. processing
  15. taking a photo
  16. processing
  17. False
  18. tapping a button
  19. False
  20. adding up a bill
  21. a result on screen
  22. 6000
  23. input
  24. 240
  25. 62
  26. False
  27. tapping a button
  28. 210
  29. 15000
  30. a beep sound
  31. 600
  32. line 3
  33. 430
  34. taking a photo
  35. a beep sound
  36. 195
  37. line 3
  38. 11
  39. line 2
  40. processing

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