← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. 150
  3. 560
  4. a pop-up message
  5. False
  6. 250
  7. taking a photo
  8. line 2
  9. input
  10. True
  11. working out a tip
  12. tapping a button
  13. 50
  14. a beep sound
  15. line 3
  16. line 3
  17. line 2
  18. a buzz (vibration)
  19. False
  20. input
  21. line 3
  22. line 2
  23. 380
  24. True
  25. a beep sound
  26. 380
  27. line 3
  28. True
  29. working out a tip
  30. False
  31. processing
  32. processing
  33. typing your age
  34. 4000
  35. line 3
  36. 7000
  37. output
  38. 260
  39. processing
  40. False

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