← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. sorting the scores
  2. 4000
  3. processing
  4. adding up a bill
  5. tapping a button
  6. 255
  7. output
  8. a beep sound
  9. output
  10. line 3
  11. 9000
  12. 50
  13. output
  14. working out a tip
  15. False
  16. taking a photo
  17. speaking a command
  18. checking a password
  19. True
  20. a beep sound
  21. line 2
  22. 160
  23. 210
  24. 400
  25. 33
  26. line 3
  27. line 3
  28. line 2
  29. 2000
  30. processing
  31. adding up a bill
  32. typing your age
  33. False
  34. line 3
  35. a result on screen
  36. line 3
  37. speaking a command
  38. line 3
  39. 190
  40. 400

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