← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. working out a tip
  3. 150
  4. line 2
  5. True
  6. speaking a command
  7. typing your age
  8. line 3
  9. 260
  10. processing
  11. processing
  12. 100
  13. output
  14. tapping a button
  15. checking a password
  16. line 3
  17. speaking a command
  18. line 3
  19. checking a password
  20. working out a tip
  21. False
  22. line 2
  23. line 2
  24. adding up a bill
  25. False
  26. a beep sound
  27. line 3
  28. line 3
  29. 76
  30. line 2
  31. line 3
  32. a beep sound
  33. taking a photo
  34. line 3
  35. line 3
  36. sorting the scores
  37. 120
  38. line 3
  39. line 3
  40. 53

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