← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 2000
  2. speaking a command
  3. processing
  4. checking a password
  5. 90
  6. line 3
  7. input
  8. line 3
  9. speaking a command
  10. False
  11. 8000
  12. checking a password
  13. line 3
  14. sorting the scores
  15. line 3
  16. 18
  17. line 2
  18. 43
  19. 125
  20. line 3
  21. typing your age
  22. line 2
  23. working out a tip
  24. line 3
  25. a beep sound
  26. line 3
  27. line 3
  28. 360
  29. 375
  30. 120
  31. True
  32. tapping a button
  33. line 3
  34. line 2
  35. 240
  36. 13000
  37. False
  38. typing your age
  39. 460
  40. line 3

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