--:--









Quiz for Operators and expressions in C++

Course: C++ Language | Subject: Unit 1 | Topic: Introduction to C++



Logo

Q1: Which operator is used for addition in C++?

Logo

Q2: What is the result of 5 % 2?

Logo

Q3: Which operator is used to compare equality?

Logo

Q4: What is the output of the expression 3 + 4 * 2?

Logo

Q5: Which operator is used for logical AND?

Logo

Q6: Which operator is used to increment a variable by 1?

Logo

Q7: Which operator has the highest precedence?

Logo

Q8: What is the result of the expression !(true && false)?

Logo

Q9: Which operator is used for bitwise OR?

Logo

Q10: What does the ?: operator represent?

Logo

Q11: Which operator is used to dereference a pointer?

Logo

Q12: What is the output of 10 / 4 in integer division?

Logo

Q13: Which operator returns the address of a variable?

Logo

Q14: Which operator is used for subtraction?

Logo

Q15: What does the operator <<= do?

Logo

Q16: Which operator tests for inequality?

Logo

Q17: What is the result of ++i when i = 5?

Logo

Q18: Which operator is used to combine two strings in C++?

Logo

Q19: Which operator is used for logical NOT?

Logo

Q20: Which operator accesses members of a structure via pointer?

Are you ready to start test? Set your time limit