← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. typing your age
  2. a beep sound
  3. line 2
  4. line 3
  5. output
  6. True
  7. False
  8. line 3
  9. a result on screen
  10. line 3
  11. line 2
  12. 220
  13. 6000
  14. speaking a command
  15. line 2
  16. line 3
  17. True
  18. 550
  19. 200
  20. line 3
  21. processing
  22. 160
  23. working out a tip
  24. False
  25. line 3
  26. taking a photo
  27. processing
  28. line 3
  29. output
  30. 20
  31. 60
  32. line 3
  33. True
  34. 530
  35. checking a password
  36. sorting the scores
  37. input
  38. line 3
  39. typing your age
  40. line 3

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