← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. 280
  3. False
  4. 130
  5. line 3
  6. output
  7. tapping a button
  8. line 3
  9. working out a tip
  10. line 3
  11. speaking a command
  12. a beep sound
  13. taking a photo
  14. False
  15. output
  16. True
  17. line 3
  18. line 3
  19. 150
  20. a pop-up message
  21. taking a photo
  22. 47
  23. True
  24. 500
  25. typing your age
  26. True
  27. line 3
  28. 10000
  29. True
  30. 570
  31. line 2
  32. False
  33. input
  34. a result on screen
  35. line 3
  36. a result on screen
  37. speaking a command
  38. 120
  39. line 3
  40. 52

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