← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. adding up a bill
  3. line 3
  4. a buzz (vibration)
  5. checking a password
  6. processing
  7. typing your age
  8. output
  9. input
  10. 69
  11. input
  12. output
  13. sorting the scores
  14. False
  15. True
  16. True
  17. 270
  18. a pop-up message
  19. line 3
  20. True
  21. 23
  22. 225
  23. processing
  24. 67
  25. line 3
  26. line 3
  27. False
  28. sorting the scores
  29. True
  30. line 2
  31. speaking a command
  32. 30
  33. line 3
  34. line 3
  35. line 2
  36. line 3
  37. speaking a command
  38. 170
  39. 34
  40. line 2

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