← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. tapping a button
  2. processing
  3. line 3
  4. line 3
  5. 140
  6. working out a tip
  7. adding up a bill
  8. input
  9. output
  10. line 3
  11. line 3
  12. 170
  13. speaking a command
  14. line 2
  15. line 3
  16. working out a tip
  17. processing
  18. 11000
  19. 425
  20. a beep sound
  21. line 3
  22. 73
  23. False
  24. taking a photo
  25. line 2
  26. 350
  27. 14000
  28. 280
  29. True
  30. line 2
  31. True
  32. adding up a bill
  33. a beep sound
  34. speaking a command
  35. a result on screen
  36. 90
  37. line 3
  38. checking a password
  39. False
  40. output

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