← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. speaking a command
  3. output
  4. False
  5. 500
  6. processing
  7. sorting the scores
  8. False
  9. line 3
  10. 290
  11. a result on screen
  12. 7000
  13. False
  14. line 3
  15. input
  16. False
  17. processing
  18. working out a tip
  19. a beep sound
  20. a pop-up message
  21. 8000
  22. False
  23. sorting the scores
  24. input
  25. input
  26. line 3
  27. processing
  28. False
  29. checking a password
  30. a result on screen
  31. line 3
  32. True
  33. output
  34. output
  35. line 3
  36. 80
  37. line 2
  38. 24
  39. 13000
  40. 210

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