← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. input
  3. speaking a command
  4. output
  5. line 3
  6. 39
  7. False
  8. 165
  9. 425
  10. 180
  11. False
  12. 77
  13. processing
  14. 490
  15. input
  16. speaking a command
  17. False
  18. processing
  19. True
  20. output
  21. input
  22. processing
  23. processing
  24. 270
  25. False
  26. sorting the scores
  27. a beep sound
  28. 260
  29. False
  30. a buzz (vibration)
  31. line 3
  32. line 2
  33. line 2
  34. adding up a bill
  35. False
  36. output
  37. True
  38. True
  39. checking a password
  40. 7000

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