← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 25
  2. processing
  3. tapping a button
  4. output
  5. typing your age
  6. 150
  7. 350
  8. 150
  9. output
  10. 550
  11. 10000
  12. 30
  13. sorting the scores
  14. a beep sound
  15. line 3
  16. False
  17. a result on screen
  18. processing
  19. speaking a command
  20. checking a password
  21. False
  22. a result on screen
  23. line 3
  24. line 3
  25. 100
  26. adding up a bill
  27. a buzz (vibration)
  28. line 3
  29. line 3
  30. input
  31. True
  32. line 3
  33. line 3
  34. 8000
  35. line 3
  36. input
  37. a pop-up message
  38. line 3
  39. 48
  40. taking a photo

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