C#
What is the output of Console.WriteLine(5 < 2) in C#?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
False
Answer option 2
True
Answer option 3
5
English
Which of the following is a correct way to declare a dictionary in C#?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
Dictionary<int, string> dict = new Dictionary<int, string>();
Answer option 2
Dictionary dict = new Dictionary();
Answer option 3
Dictionary<int, string> dict = new Dictionary();
English
Which of the following is a correct way to declare a list in C#?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
List<int> list = new List<int>();
Answer option 2
List list = new List();
Answer option 3
List<int> list = new List();
English
What is the output of Console.WriteLine(5 > 2) in C#?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
True
Answer option 2
False
Answer option 3
5
English
Which of the following is a correct way to declare a string in C#?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
string s = "Hello";
Answer option 2
String s = 'Hello';
Answer option 3
str s = "Hello";
English
What is the output of Console.WriteLine(5 != 5) in C#?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
False
Answer option 2
True
Answer option 3
5
English
Which of the following is a correct way to declare a nullable type in C#?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
int?
Answer option 2
nullable int
Answer option 3
int!
English
What is the output of Console.WriteLine(5 == 5) in C#?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
True
Answer option 2
False
Answer option 3
5
English
Which of the following is a sealed class in C#?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
A class that cannot be inherited
Answer option 2
A class that cannot be instantiated
Answer option 3
A class that cannot be overridden
English
What is the output of Console.WriteLine(5 % 2) in C#?
Anonymous (not verified)
Subject
Correct answer position
1
Answer option 1
1
Answer option 2
2
Answer option 3
0
English