← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 9000
  2. processing
  3. True
  4. 37
  5. line 3
  6. 200
  7. processing
  8. tapping a button
  9. line 3
  10. typing your age
  11. False
  12. 420
  13. typing your age
  14. output
  15. 66
  16. input
  17. 180
  18. a buzz (vibration)
  19. 60
  20. line 2
  21. a pop-up message
  22. processing
  23. adding up a bill
  24. processing
  25. tapping a button
  26. 225
  27. False
  28. False
  29. working out a tip
  30. line 2
  31. 4000
  32. line 2
  33. line 3
  34. taking a photo
  35. 130
  36. 200
  37. True
  38. line 3
  39. 6000
  40. 390

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