C# Programming - Operators

Why C# Programming Operators?

In this section you can learn and practice C# Programming Questions based on "Operators" and improve your skills in order to face the interview, competitive examination and various entrance test (CAT, GATE, GRE, MAT, Bank Exam, Railway Exam etc.) with full confidence.

Where can I get C# Programming Operators questions and answers with explanation?

IndiaBIX provides you lots of fully solved C# Programming (Operators) questions and answers with Explanation. Solved examples with detailed answer description, explanation are given and it would be easy to understand. All students, freshers can download C# Programming Operators quiz questions with answers as PDF files and eBooks.

Where can I get C# Programming Operators Interview Questions and Answers (objective type, multiple choice)?

Here you can find objective type C# Programming Operators questions and answers for interview and entrance examination. Multiple choice and true or false type questions are also provided.

How to solve C# Programming Operators problems?

You can easily solve all kind of C# Programming questions based on Operators by practicing the objective type exercises given below, also get shortcut methods to solve C# Programming Operators problems.

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?

  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
E. None of these

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

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);

A. 163 92
B. 92 163
C. 192 63
D. 0 1

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

3. 

Which of the following is NOT an Arithmetic operator in C#.NET?

A. **
B. +
C. /
D. %
E. *

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

4. 

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
E. None of these

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

5. 

Which of the following is NOT a Bitwise operator in C#.NET?

A. &
B. |
C. <<
D. ^
E. ~

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.