Which of the following statements is correct about Bitwise | operator used in C#.NET?
A -
The | operator can be used to Invert a bit.
B -
The | operator can be used to check whether a bit is ON.
C -
The | operator can be used to check whether a bit is OFF.
D -
The | operator can be used to put ON a bit.
2-
Which of the following is NOT an Assignment operator in C#.NET?
A -
\=
B -
*=
C -
+=
D -
%=
3-
What will be the output of the C#.NET code snippet given below?
A -
8 4 16 12 20
B -
4 8 12 16 20
C -
4 8 16 32 64
D -
2 4 6 8 10
4-
What will be the output of the C#.NET code snippet given below?
A -
10
B -
20
C -
30
D -
Compile Error / Syntax Error
5-
Which of the following statements are correct about the following code snippet?
1/There is no error in the code snippet.
2/ An error will be reported since ! can work only with an int.
3/ A value 1 will be assigned to c.
4/ A value True will be assigned to c.
5/ A value False will be assigned to c.
A -
2, 4
B -
4, 5
C -
1, 4
D -
None of these
6-
Which of the following statements is correct about Bitwise ^ operator used in C#.NET?
A -
The ^ operator can be used to put ON a bit.
B -
The ^ operator can be used to put OFF a bit.
C -
The ^ operator can be used to Invert a bit.
D -
The ^ operator can be used to check whether a bit is ON.
7-
Which of the following statements are correct?
1/ The conditional operator (?:) returns one of two values depending on the value of a Boolean expression.
2/ The as operator in C#.NET is used to perform conversions between compatible reference types.
3/ The &* operator is also used to declare pointer types and to dereference pointers.
4/ The -> operator combines pointer dereferencing and member access.
5/ In addition to being used to specify the order of operations in an expression, brackets [ ] are used to specify casts or type conversions.
A -
1, 2, 4
B -
2, 3, 5
C -
3, 4, 5
D -
1, 3, 5
8-
How many values is a function capable of returning?
A -
0
B -
1
C -
Depends upon how many params arguments does it use.
D -
Any number of values.
9-
Which of the following is NOT a namespace in the .NET Framework Class Library?
A -
System.Threading
B -
System.Security
C -
System.Process
D -
System.Drawing
10-
Which of the following statements is correct?
A -
The cast operator can be overloaded.
B -
It is not necessary that all operator overloads are static methods of the class.
C -
Operator overloading works in different ways for structures and classes.
D -
When used as a modifier, the new keyword explicitly hides a member inherited from a base class.