← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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