Exam -
Basic C# Practice Questions
-
82519
1) Which keyword is used to create an object in C#?
A)
this
B)
new
C)
create
D)
object
2) Which data type is used to store a true/false value?
A)
int
B)
string
C)
bool
D)
char
3) Fill in the blanks.
In C#, the keyword used to define a method that belongs to the class rather than an instance is
.
4) Fill in the blanks.
The
statement is used to handle exceptions in C#.
5) Match the datatype with its correct example
1) int
"Hello"
select
1
2
2) string
25
select
1
2
6) Match the loop type with its behavior
1) for loop
Executes at least once before checking condition
select
1
2
2) do-while loop
Executes a fixed number of times.
select
1
2
Exam Panel
Info:
Total Questions
MCQ:
2
Fill in the blanks:
2
Match the following:
2
Total:
6
Click submit buton to get result
Result
MCQ
Score:
Fill in the blanks
Score:
Match the following
Score:
☰