← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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