← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a pop-up message
  2. 6000
  3. True
  4. False
  5. line 2
  6. adding up a bill
  7. adding up a bill
  8. 3000
  9. 45
  10. 78
  11. taking a photo
  12. 5000
  13. True
  14. line 3
  15. typing your age
  16. processing
  17. line 3
  18. 130
  19. 200
  20. processing
  21. 41
  22. working out a tip
  23. output
  24. line 3
  25. 380
  26. 210
  27. checking a password
  28. False
  29. working out a tip
  30. 390
  31. line 2
  32. 8000
  33. output
  34. 430
  35. speaking a command
  36. 11000
  37. True
  38. speaking a command
  39. line 3
  40. a beep sound

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