← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a buzz (vibration)
  2. 460
  3. False
  4. adding up a bill
  5. checking a password
  6. typing your age
  7. line 3
  8. speaking a command
  9. tapping a button
  10. input
  11. False
  12. line 3
  13. line 2
  14. 10000
  15. speaking a command
  16. processing
  17. False
  18. input
  19. line 3
  20. taking a photo
  21. a beep sound
  22. input
  23. 510
  24. 160
  25. output
  26. a buzz (vibration)
  27. 75
  28. line 2
  29. line 3
  30. line 3
  31. processing
  32. 11000
  33. 420
  34. line 2
  35. line 3
  36. sorting the scores
  37. line 3
  38. 490
  39. 5000
  40. a pop-up message

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