C# exam as preparation for deal with the real C# exam that conducted by our beloved customer.
Prepared by: R&D Dept.
Delegate d(int i, Single j);
Delegate void d(int, Single);
Delegate int d(int i, Single j);
Delegate void (int i, Single j);
Delegate int sample.func(int i, Single j);
Rate this question:
Extends
Inherits
Sealed
Inheritable
Rate this question:
Program will generate run-time exception.
Compiler will report an error: Operator '+' is not defined for types T and int.
Result of addition is system-dependent.
Addition will produce result 1.
Rate this question:
Program will compile and on execution will print: IndonesiaBIX 4.2
Compiler will generate an error.
A non generic class Hello cannot have generic subroutine.
None of the above.
Rate this question:
2 and 5 only
1 and 2 only
1 and 3 and 4 only
All of the above
Rate this question:
5 only
1, 2 and 5 only
3 and 4 only
1 and 2 only
Rate this question:
Variables can be assigned only to the first enum element.
Variables cannot be assigned to enum elements.
Variables can be assigned to any one of the enum elements.
Values assigned to enum elements must always begin with 0.
Rate this question:
There is no error in this switch case statement.
Compiler will report an error in case ls > 20 as well as in case Else.
Compiler will report an error only in case Else.
Compiler will report an error as there is no default case.
The order of the first three cases should be case 1, case 6, case 13 (ascending).
Rate this question:
1
0
Run time Error
Compile Error
Rate this question:
36 5.4
36 5.400000
0 0.0
36 5
None of the above
Rate this question:
20
18
4
5
10
Rate this question:
2, 4, 5
1, 3
3, 5
4 only
Rate this question:
1, 3
1, 3, 5
5 only
2, 4, 5
Rate this question:
Ss will be created on the stack.
Both ss and z will be created on the heap.
Z will be created on the heap.
Trial object referred by z will be created on the stack.
Rate this question:
Address stored in a will get copied into b.
Once assignment is over a will get garbage collected.
All elements of a will get copied into corresponding elements of b.
Once assignment is over a will go out of scope, hence will die.
Rate this question:
Derived2 class
Base class
Derived1 class
Base class Derived1 class Derived2 class
Rate this question:
2, 5
3, 4
4, 5
1, 3
Rate this question:
3, 4
4, 5
2, 3
1, 2
Rate this question:
Const float pi = 3.14F;
#define pi 3.14F;
Const float pi = 3.14F;
Const float pi; pi = 3.14F;
Rate this question:
Operatoroverload
Op
Opoverload
Operator
Rate this question:
Declare rollNo property with get, set and normal accessors.
Declare rollNo property with only get accessor.
Declare rollNo property with both get and set accessors.
None of the above
Rate this question:
0
-1
1
2
Rate this question:
Sample s2 = new Sample(10, 1.2f);
Sample s3 = new Sample(10, 1.2f, 2.4);
Sample s1 = new Sample();
Sample s1 = new Sample(, , 2.5);
Rate this question:
System.Type
System.Object
System.Base
System.Root
Rate this question:
Quiz Review Timeline (Updated): Feb 14, 2024 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.