C# Programming - Operators
Exercise : Operators - General Questions
- Operators - General Questions
1.
Which of the following are the correct ways to increment the value of variable a by 1?
- ++a++;
- a += 1;
- a ++ 1;
- a = a +1;
- a = +1;
2.
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);
3.
Which of the following is NOT an Arithmetic operator in C#.NET?
4.
Which of the following are NOT Relational operators in C#.NET?
- >=
- !=
- Not
- <=
- <>=
5.
Which of the following is NOT a Bitwise operator in C#.NET?
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers