← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 50
  2. line 3
  3. True
  4. a buzz (vibration)
  5. True
  6. 90
  7. tapping a button
  8. 300
  9. line 3
  10. speaking a command
  11. 140
  12. line 3
  13. True
  14. taking a photo
  15. line 3
  16. working out a tip
  17. checking a password
  18. processing
  19. a beep sound
  20. sorting the scores
  21. False
  22. a result on screen
  23. typing your age
  24. 175
  25. a pop-up message
  26. typing your age
  27. working out a tip
  28. a beep sound
  29. line 3
  30. processing
  31. input
  32. line 3
  33. checking a password
  34. line 3
  35. 5000
  36. False
  37. line 3
  38. taking a photo
  39. 52
  40. 290

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