← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. adding up a bill
  2. line 3
  3. sorting the scores
  4. line 3
  5. False
  6. speaking a command
  7. line 3
  8. 180
  9. 230
  10. 280
  11. line 3
  12. line 3
  13. input
  14. line 2
  15. working out a tip
  16. False
  17. output
  18. 285
  19. line 3
  20. input
  21. 240
  22. processing
  23. False
  24. line 3
  25. input
  26. line 3
  27. False
  28. 12000
  29. line 3
  30. tapping a button
  31. output
  32. processing
  33. a buzz (vibration)
  34. 69
  35. sorting the scores
  36. 200
  37. speaking a command
  38. True
  39. 240
  40. 3000

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