← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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