← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 490
  2. True
  3. a pop-up message
  4. tapping a button
  5. typing your age
  6. 9000
  7. True
  8. False
  9. speaking a command
  10. processing
  11. line 3
  12. False
  13. input
  14. processing
  15. sorting the scores
  16. 57
  17. working out a tip
  18. taking a photo
  19. line 3
  20. input
  21. input
  22. line 3
  23. line 3
  24. 230
  25. False
  26. 53
  27. True
  28. adding up a bill
  29. line 3
  30. 80
  31. 190
  32. line 3
  33. line 3
  34. a result on screen
  35. line 2
  36. a result on screen
  37. checking a password
  38. a buzz (vibration)
  39. line 3
  40. 400

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