← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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