← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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