Exercise: Python

Questions for: Operators

Which of the following are NOT Relational operators in C#.NET?
  1. >=
  2. !=
  3. Not
  4. <=
  5. <>=
A:
1, 3
B:
2, 4
C:
3, 5
D:
4, 5
Answer: C
No answer description is available. Let's discuss.
Which of the following is NOT an Arithmetic operator in C#.NET?
A:
**
B:
+
C:
/
D:
%
Answer: A
No answer description is available. Let's discuss.
What will be the output of the C#.NET code snippet given below?
byte b1 = 0xF7;
byte b2 = 0xAB;
byte temp;
temp = (byte)(b1 & b2);
Console.Write (temp + " ");
temp = (byte)(b1^b2);
Console.WriteLine(temp);
A:
163 92
B:
92 163
C:
192 63
D:
0 1
Answer: A
No answer description is available. Let's discuss.
Which of the following are the correct ways to increment the value of variable a by 1?
  1. ++a++;
  2. a += 1;
  3. a ++ 1;
  4. a = a +1;
  5. a = +1;
A:
1, 3
B:
2, 4
C:
3, 5
D:
4, 5
Answer: B
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz