Operators on C# related Questions and Answers

Question 2 : Which of the following is NOT an Assignment operator in C#.NET?
1. \=
2. /=
3. *=
4. +=
5. %=
View Answer   Discuss with Members

Question 4 : Suppose n is a variable of the type Byte and we wish to put OFF its fourth bit (from right) without disturbing any other bits. Which of the following statements will do this correctly?
1. n = n && HF7
2. n = n & 16
3. n = n & 0xF7
4. n = n & HexF7
5. n = n & 8
View Answer   Discuss with Members

Question 5 : Which of the following is NOT a Bitwise operator in C#.NET?
1. &
2. |
3. <<
4. ^
5. ~
View Answer   Discuss with Members

Question 6 : Which of the following is NOT an Arithmetic operator in C#.NET?
1. **
2. +
3. /
4. %
5. *
View Answer   Discuss with Members


View 1 - 6 of 6 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter