C# Chapter Wise Practice Test
C# Chapter Wise Practice Test
IT
SEMESTER VI
Chap 12 Test
Marks Date____________
Students Name: ____________________________________________ Roll
No:
1
a) Must be
overridden
b) Runtime
c) Variable
argument
d) Compiler fix
e) One name many
form
2 Restrictions for params
1)
__________________________________________
___________________________________________
2)
__________________________________________
___________________________________________
List 8 modifiers used with method
declaration in class
___________________________________________
___________________________________________
Use of static void Main().
___________________________________________
___________________________________________
State whether the statements are true or
false
1) Static Method can be overloaded. ______
2) Method can define nested method.
______
3) Every method must have return type
_____
4) Method can declare a constant ______
Comment on out keyword in
_________________
____________________________________________
____________________________________________
10
11
12
15
16
13
14
17
18
return +x
}}
19
20
Chapter 08
Write the proper
match
5. overload : ______
6. params : _______
7. add(10,20); :
____
8. abstract : _______
f) Must be
overridden
g) Runtime
h) Variable
argument
i) Compiler fix
j) One name many
form
2 Restrictions for params
1)
__________________________________________
___________________________________________
2)
__________________________________________
___________________________________________
List 8 modifiers used with method
declaration in class
___________________________________________
___________________________________________
Use of static constructor.
___________________________________________
___________________________________________
10
11
12
13
14
15
T. Y. B. Sc. IT SEMESTER VI
Chap 13 Test
Time 20 Min Total 20 Marks
Students Name: ____________________________________________ Roll
No:
Match the
k) non virtual
11 Comment on enumeration base type
following
l) overriding
conversion.
1. Containment___ m)
has a g) many
___________________________________________
__
for one
___________________________________________
2. Hierarchical
n) is a
h) sealed
___________________________________________
_____
o) one for many
__________________________________________
3. virtual_________
_
4. new___________
1
0
12
14
13
15
16
17
18
19
20
Assembly
AnyWher
Sub class
e
protected
internal
protecte
d
internal
Define
enumeration_________________________________________________________________________________
_________________________________________________________________________________________________
SEMESTER VI
Test Chap 14
Time 20 Min
Date____________
Students Name: ____________________________________________ Roll
No:
Total 20 Marks
p) Constant_____________
q) Array_______________
r) abstract method_______
s) Copy Constructor_____
t) Property.____________
2 Differences between classes and Interface methods
1) __________________________________________
___________________________________________
2) __________________________________________
___________________________________________
List 4 modifiers that can used with interface methods
___________________________________________
___________________________________________
11
Use of as keyword
___________________________________________
___________________________________________
State whether the statements are true or false
9) interface cannot have non static member. _____
10)
interface is value type. ______
11)
Interface can have a property with get set ____
12)
Multilevel inheritance is not allowed in
Interface___
13)
Two interfaces cannot use same base interface
____
Use of : (colon) in class for interface
14
16
17
8
&
18
9
&
19
Mark
V for valid
I for invalid
Member of interface
12
13
15
____________________________________________
____________________________________________
____________________________________________
____________________________________________
____________________________________________
19
____________________________________________
____________________________________________
____________________________________________
____________________________________________
____________________________________________
10
20
9
&
1
0
2
&
1
2
17
&
18
19
20
14
15
2 Advantages of using
delegates___________________
_____________________________________________
_____________________________________________
9
&
1
0
16
1
1
1
2
DivideByZeroException
1
3
1
4
1
5
1
0