← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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