← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. False
  3. 47
  4. 3000
  5. input
  6. 75
  7. line 3
  8. adding up a bill
  9. 75
  10. speaking a command
  11. 64
  12. line 3
  13. output
  14. line 2
  15. False
  16. typing your age
  17. working out a tip
  18. 54
  19. True
  20. line 3
  21. processing
  22. True
  23. True
  24. taking a photo
  25. 600
  26. line 3
  27. output
  28. taking a photo
  29. line 3
  30. True
  31. False
  32. processing
  33. input
  34. line 2
  35. line 3
  36. input
  37. line 3
  38. speaking a command
  39. line 3
  40. 12000

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