← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. working out a tip
  2. line 3
  3. processing
  4. speaking a command
  5. checking a password
  6. 30
  7. a pop-up message
  8. speaking a command
  9. output
  10. adding up a bill
  11. a beep sound
  12. taking a photo
  13. line 2
  14. output
  15. False
  16. a pop-up message
  17. line 2
  18. input
  19. typing your age
  20. False
  21. 150
  22. 30
  23. 10000
  24. processing
  25. sorting the scores
  26. output
  27. processing
  28. line 3
  29. True
  30. line 3
  31. False
  32. 69
  33. 35
  34. input
  35. line 3
  36. line 2
  37. line 2
  38. line 3
  39. adding up a bill
  40. 71

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