← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. taking a photo
  2. a buzz (vibration)
  3. a pop-up message
  4. line 3
  5. 240
  6. False
  7. processing
  8. line 3
  9. 24
  10. line 2
  11. line 3
  12. False
  13. line 3
  14. typing your age
  15. line 3
  16. typing your age
  17. input
  18. True
  19. checking a password
  20. line 3
  21. False
  22. True
  23. checking a password
  24. sorting the scores
  25. line 3
  26. working out a tip
  27. sorting the scores
  28. output
  29. line 3
  30. line 3
  31. 62
  32. taking a photo
  33. a result on screen
  34. 63
  35. False
  36. True
  37. 260
  38. a buzz (vibration)
  39. line 3
  40. 7000

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