← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. line 3
  3. processing
  4. input
  5. typing your age
  6. typing your age
  7. working out a tip
  8. line 3
  9. 210
  10. processing
  11. 9000
  12. line 3
  13. input
  14. True
  15. line 3
  16. line 3
  17. 75
  18. line 2
  19. working out a tip
  20. a buzz (vibration)
  21. 120
  22. line 3
  23. checking a password
  24. output
  25. 285
  26. line 2
  27. input
  28. line 3
  29. 49
  30. 90
  31. 570
  32. speaking a command
  33. output
  34. 50
  35. False
  36. True
  37. False
  38. adding up a bill
  39. sorting the scores
  40. 570

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