← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 270
  2. a pop-up message
  3. output
  4. line 3
  5. 380
  6. 32
  7. line 2
  8. input
  9. True
  10. 57
  11. speaking a command
  12. line 2
  13. True
  14. output
  15. taking a photo
  16. output
  17. line 3
  18. 4000
  19. checking a password
  20. input
  21. processing
  22. False
  23. line 3
  24. tapping a button
  25. 140
  26. speaking a command
  27. input
  28. line 3
  29. a buzz (vibration)
  30. 40
  31. 150
  32. processing
  33. 11000
  34. 8000
  35. False
  36. line 3
  37. 470
  38. line 3
  39. line 2
  40. line 3

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