← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 4000
  2. adding up a bill
  3. 13000
  4. 380
  5. line 2
  6. working out a tip
  7. True
  8. 225
  9. input
  10. 125
  11. 60
  12. a beep sound
  13. input
  14. False
  15. taking a photo
  16. typing your age
  17. line 2
  18. processing
  19. 7000
  20. False
  21. 400
  22. a pop-up message
  23. line 3
  24. taking a photo
  25. line 3
  26. line 3
  27. False
  28. False
  29. speaking a command
  30. line 2
  31. line 3
  32. speaking a command
  33. line 2
  34. 55
  35. output
  36. working out a tip
  37. line 3
  38. 330
  39. line 3
  40. 11000

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