← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. taking a photo
  2. 75
  3. True
  4. line 2
  5. line 3
  6. processing
  7. line 3
  8. adding up a bill
  9. True
  10. a beep sound
  11. line 3
  12. line 2
  13. input
  14. 220
  15. line 3
  16. line 3
  17. line 3
  18. input
  19. a pop-up message
  20. a result on screen
  21. 110
  22. a result on screen
  23. output
  24. input
  25. False
  26. processing
  27. 180
  28. True
  29. False
  30. False
  31. False
  32. 12000
  33. output
  34. 69
  35. 375
  36. checking a password
  37. line 3
  38. input
  39. False
  40. 210

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