CJCoding With Joseph
TitleAction
1
Default bool Field ValueWhat is the default value of a `bool` instance field in C#?...
easy○ Not StartedVariablesSolve
2
WriteLine vs WriteWhat is the difference between `Console.WriteLine` and `Console.Write`?...
easy○ Not StartedPrintingSolve
4
Meaning of voidWhat does a return type of `void` indicate for a method?...
easy○ Not StartedMethodsSolve
5
Creating an InstanceWhich keyword creates a new instance (object) of a class in C#?...
easy○ Not StartedClassesSolve
6
Array Starting IndexWhat is the index of the first element in a C# array?...
easy○ Not StartedArraysSolve
7
String ConcatenationWhat does this code print?...
easy○ Not StartedStringsSolve
8
Basic if/elseWhat does this code print?...
easy○ Not StartedConditionalsSolve
11
The var KeywordWhat does the `var` keyword do in C#?...
easy○ Not StartedVariablesSolve
15
Array LengthWhat does this code print?...
easy○ Not StartedArraysSolve
18
Inheritance SyntaxHow do you declare that class `Dog` inherits from class `Animal` in C#?...
easy○ Not StartedInheritanceSolve
19
Which Block Always RunsIn a `try`/`catch`/`finally` statement, which block always executes whether or n...
easy○ Not StartedExceptionsSolve
24
Declaring an ArrayWhich line correctly declares an array of 3 integers in C#?...
easy○ Not StartedArraysSolve
25
Main Method ParameterWhat is the standard parameter type of the `Main` method used to receive command...
easy○ Not StartedMethodsSolve
26
Default char Field ValueWhat is the default value of a `char` instance field in C#?...
easy○ Not StartedVariablesSolve
27
Printing a BooleanWhat does `Console.WriteLine(10 > 5);` print?...
easy○ Not StartedPrintingSolve
28
foreach DoublingWhat does this code print?...
easy○ Not StartedLoopsSolve
29
Reading an Array ElementWhat does this code print?...
easy○ Not StartedArraysSolve
30
Length of a StringWhat is the value of `"code".Length`?...
easy○ Not StartedStringsSolve
31
Ternary Operator ResultWhat does this code print?...
easy○ Not StartedConditionalsSolve
32
Accessing a MemberWhich operator accesses a public field or method of an object in C#?...
easy○ Not StartedClassesSolve
33
Referring to the Current ObjectInside an instance method, which keyword refers to the object the method was cal...
easy○ Not StartedClassesSolve
35
Raising an ExceptionWhich keyword is used to raise (signal) an exception in C#?...
easy○ Not StartedExceptionsSolve
37
Purpose of returnIn a method with a non-`void` return type, what does the `return` statement do?...
easy○ Not StartedMethodsSolve
39
The const KeywordWhat is true about a variable declared with `const` in C#?...
easy○ Not StartedVariablesSolve
40
Newline Escape SequenceWhat does `Console.WriteLine("A\nB");` print?...
easy○ Not StartedPrintingSolve
46
switch Case SelectionWhat does this code print?...
easy○ Not StartedConditionalsSolve
48
The sealed KeywordWhat does marking a class as `sealed` do in C#?...
easy○ Not StartedInheritanceSolve
3
Output of a while LoopWhat does this code print?...
medium○ Not StartedLoopsSolve
9
Purpose of baseIn C#, what does the `base` keyword let a derived class do?...
medium○ Not StartedInheritanceSolve
10
try-catch-finally OrderWhat does this code print?...
medium○ Not StartedExceptionsSolve
12
String Interpolation OutputWhat does this code print?...
medium○ Not StartedPrintingSolve
13
for Loop with MultiplicationWhat does this code print?...
medium○ Not StartedLoopsSolve
14
Same Name, Different ParametersWhat is it called when a class has two methods with the same name but different ...
medium○ Not StartedMethodsSolve
16
Substring ResultWhat does this code print?...
medium○ Not StartedStringsSolve
17
switch Statement OutputWhat does this code print?...
medium○ Not StartedConditionalsSolve
21
Meaning of staticWhat does the `static` keyword mean when applied to a class member?...
medium○ Not StartedClassesSolve
34
What a Constructor ReturnsWhich statement about a class constructor in C# is correct?...
medium○ Not StartedClassesSolve
36
Catching a Specific ExceptionWhat does this code print?...
medium○ Not StartedExceptionsSolve
38
Passing by ReferenceWhat does the `ref` keyword do when used on a method parameter?...
medium○ Not StartedMethodsSolve
41
Comparing Strings with ==What does this code print?...
medium○ Not StartedStringsSolve
43
Breaking Out of a while LoopWhat does this code print?...
medium○ Not StartedLoopsSolve
44
do-while Runs at Least OnceWhat does this code print?...
medium○ Not StartedLoopsSolve
45
Invalid Array IndexWhat happens when you access `arr[10]` on an array of length 5?...
medium○ Not StartedArraysSolve
47
Casting double to intWhat does this code print?...
medium○ Not StartedVariablesSolve
20
Array Reference AliasingWhat does this code print?...
hard○ Not StartedArraysSolve
22
String ImmutabilityWhat does this code print?...
hard○ Not StartedStringsSolve
23
Integer Division into a doubleWhat does this code print?...
hard○ Not StartedVariablesSolve
42
Mixing Addition and ConcatenationWhat does this code print?...
hard○ Not StartedStringsSolve
49
Virtual Method DispatchWhat does this code print?...
hard○ Not StartedInheritanceSolve
50
Method Hiding vs OverridingWhat does this code print?...
hard○ Not StartedInheritanceSolve