← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. line 3
  3. checking a password
  4. processing
  5. True
  6. line 3
  7. working out a tip
  8. 90
  9. input
  10. typing your age
  11. tapping a button
  12. a pop-up message
  13. a buzz (vibration)
  14. line 3
  15. a result on screen
  16. a buzz (vibration)
  17. output
  18. output
  19. True
  20. 150
  21. line 3
  22. 2000
  23. 10000
  24. False
  25. line 3
  26. output
  27. typing your age
  28. 8000
  29. working out a tip
  30. processing
  31. line 3
  32. 300
  33. output
  34. taking a photo
  35. taking a photo
  36. 255
  37. line 3
  38. 24
  39. line 3
  40. 90

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