← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 180
  2. output
  3. working out a tip
  4. False
  5. working out a tip
  6. input
  7. 150
  8. a beep sound
  9. typing your age
  10. 70
  11. False
  12. line 3
  13. False
  14. checking a password
  15. 330
  16. taking a photo
  17. line 3
  18. False
  19. line 2
  20. processing
  21. adding up a bill
  22. 570
  23. False
  24. checking a password
  25. True
  26. line 3
  27. 220
  28. speaking a command
  29. line 3
  30. 130
  31. line 3
  32. line 3
  33. line 2
  34. input
  35. False
  36. processing
  37. a result on screen
  38. 3000
  39. line 3
  40. 22

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