← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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