Operators and Expressions MCQs C++

15
Score: 0
Attempted: 0/15
1. Which of the following is a relational operator in C++?



2. Which operator is used for bitwise AND in C++?



3. What is the output of int x = 5; cout << x++ << endl;?



4. Which operator is used for logical OR in C++?



5. What is the precedence of the * operator in C++?



6. Which of the following is a ternary operator in C++?



7. Which operator is used for modulus operation?



8. What is the output of int a = 4, b = 5; cout << (a & b);?



9. Which of the following is a unary operator?



10. What is the result of 3 + 4 * 2 in C++?



11. Which operator is used for pointer dereferencing in C++?



12. Which of the following is the assignment operator?



13. Which operator is used for member access through pointer?
15. Which of the following is a logical NOT operator in C++?



Contents Copyrights Reserved By T4Tutorials