← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. 140
  3. line 3
  4. line 2
  5. line 2
  6. line 3
  7. True
  8. output
  9. 51
  10. 39
  11. a result on screen
  12. True
  13. 4000
  14. 60
  15. 31
  16. input
  17. False
  18. 10000
  19. line 2
  20. False
  21. 480
  22. False
  23. processing
  24. True
  25. 225
  26. a beep sound
  27. 200
  28. True
  29. speaking a command
  30. 195
  31. line 3
  32. 14
  33. 10
  34. sorting the scores
  35. input
  36. 48
  37. tapping a button
  38. True
  39. output
  40. 210

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