← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. speaking a command
  3. speaking a command
  4. working out a tip
  5. input
  6. processing
  7. 26
  8. line 2
  9. False
  10. True
  11. 110
  12. input
  13. 59
  14. adding up a bill
  15. sorting the scores
  16. a beep sound
  17. line 3
  18. True
  19. line 3
  20. output
  21. 22
  22. line 3
  23. False
  24. False
  25. output
  26. False
  27. a pop-up message
  28. 320
  29. typing your age
  30. 100
  31. 19
  32. a result on screen
  33. line 3
  34. line 2
  35. 270
  36. typing your age
  37. line 3
  38. line 2
  39. line 2
  40. 480

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