← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 300
  2. 570
  3. working out a tip
  4. sorting the scores
  5. 300
  6. line 3
  7. checking a password
  8. False
  9. True
  10. line 3
  11. False
  12. 5000
  13. input
  14. output
  15. input
  16. line 2
  17. adding up a bill
  18. line 3
  19. line 2
  20. a result on screen
  21. False
  22. 48
  23. 9000
  24. working out a tip
  25. 240
  26. True
  27. 50
  28. a buzz (vibration)
  29. line 3
  30. a pop-up message
  31. adding up a bill
  32. processing
  33. input
  34. line 3
  35. checking a password
  36. 55
  37. typing your age
  38. False
  39. a beep sound
  40. line 3

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