← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 5000
  2. False
  3. processing
  4. taking a photo
  5. a buzz (vibration)
  6. sorting the scores
  7. adding up a bill
  8. speaking a command
  9. working out a tip
  10. sorting the scores
  11. 110
  12. checking a password
  13. line 3
  14. line 3
  15. input
  16. 46
  17. adding up a bill
  18. True
  19. taking a photo
  20. 380
  21. processing
  22. False
  23. line 3
  24. a buzz (vibration)
  25. 4000
  26. line 3
  27. 75
  28. line 3
  29. line 2
  30. a pop-up message
  31. 285
  32. 470
  33. line 3
  34. processing
  35. 60
  36. line 2
  37. line 3
  38. 390
  39. input
  40. 11000

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