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