You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- content: '`Debug.Assert(count != 0, "Count should not be 0.");`'
35
35
isCorrect: false
36
-
explanation: "Assert tests a condition. If it's true, nothing will happen or else the application will enter break mode. So here, if the count is 0, it will enter break mode."
36
+
explanation: "Assert tests a condition. If it's true, nothing happens or else the application enters break mode. So here, if the count is 0, it enters break mode."
37
37
- content: '`Debug.Assert(count == 0, "Count should not be 0.");`'
38
38
isCorrect: false
39
-
explanation: "Assert tests a condition. If it's true, nothing will happen or else the application will enter break mode. So here, if the count is 0, nothing will happen."
39
+
explanation: "Assert tests a condition. If it's true, nothing happens or else the application enters break mode. So here, if the count is 0, nothing happens."
40
40
- content: '`Debug.WriteIf(count != 0, "Count should not be 0.");`'
41
41
isCorrect: false
42
42
explanation: "This code prints a message when the count doesn't equal 0."
43
43
- content: '`Debug.WriteIf(count == 0, "Count should not be 0.");`'
44
44
isCorrect: true
45
-
explanation: "This code will only print a debug message when the count is 0."
45
+
explanation: "This code only prints a debug message when the count is 0."
46
46
- content: "What are the top two values a debugger provides?"
47
47
choices:
48
48
- content: "Control of your program execution and observation of your program's state"
49
49
isCorrect: true
50
50
explanation: "The two main values almost every debugger provides are the ability to control program execution and to observe program state."
51
51
- content: "Modifying program values and changing your program output"
52
52
isCorrect: false
53
-
explanation: "Changing your program's output isn't useful because it will only have effect when the application is being debugged."
53
+
explanation: "Changing your program's output isn't useful because it only has an effect when the application is being debugged."
54
54
- content: "Observing your program's state and modifying your program values"
55
55
isCorrect: false
56
56
explanation: "Observing and modifying values are important, but it's also important to be able to control the flow of program execution."
@@ -62,7 +62,7 @@ quiz:
62
62
- content: "Use the Variables panel because it shows all variables that are currently in scope."
63
63
isCorrect: false
64
64
explanation: "While the Variables panel does display all variables currently in scope, it's not the best way to watch the value of a specific variable."
65
-
- content: "Hover over the variable in the code editor to display the value."
65
+
- content: "Display the value by hovering over the variable in the code editor."
66
66
isCorrect: false
67
67
explanation: "While hovering does display the variable's current value, it's a manual process and isn't efficient."
68
68
- content: "Use the Watch panel to select specific variables or expressions to watch throughout the program's execution."
0 commit comments