← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 13000
  2. line 3
  3. input
  4. a result on screen
  5. 90
  6. typing your age
  7. False
  8. line 3
  9. processing
  10. processing
  11. True
  12. 270
  13. a beep sound
  14. checking a password
  15. input
  16. 220
  17. output
  18. input
  19. a result on screen
  20. line 3
  21. line 3
  22. 150
  23. sorting the scores
  24. 150
  25. a pop-up message
  26. False
  27. processing
  28. adding up a bill
  29. 15000
  30. line 3
  31. False
  32. False
  33. adding up a bill
  34. 2000
  35. tapping a button
  36. line 2
  37. 475
  38. line 3
  39. checking a password
  40. taking a photo

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