← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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