Skip to main content

Operators And Expressions In C Plus Plus MCQs with Explanations

Practice high-yield Programming & Software Development MCQs on Operators And Expressions In C Plus Plus with worked academic solutions for FPSC, PPSC, NTS, NITB, PTS.

Questions
34
Difficulty Level
Exam-Level
Target Exams
FPSC, PPSC, NTS...
Estimated Time
41 mins
Exam-Level FPSC PPSC NTS NITB PTS
Verified for Commission Syllabus • Oct 14, 2026
34

Verified Practice Questions

Interactive test mode with detailed academic worked solutions

Live Progress | 0/34 answered
✓ 0 correct ✗ 0 wrong 0% score
Question 1 of 34
★ FPSC ★ PPSC

What is the result of the expression: 5 + 3 * 2 in C++?

Question 2 of 34
★ FPSC ★ PPSC

What is the result of the expression: 3 * (4 + 2) in C++?

Question 3 of 34
★ FPSC ★ PPSC

What is the output of the following code: cout << (5 != 5); in C++?

Question 4 of 34
★ FPSC ★ PPSC

What will be the result of the expression: 5 + 3 * 2 in C++?

Question 5 of 34
★ FPSC ★ PPSC

What is the operator precedence of the multiplication operator (*) in C++?

Question 6 of 34
★ FPSC ★ PPSC

What will be the output of the following code: cout << (5 == 5); in C++?

Question 7 of 34
★ FPSC ★ PPSC

What is the result of the expression: 10 / 3 in C++?

Question 8 of 34
★ FPSC ★ PPSC

Which of the following operators is used to access the address of a variable in C++?

Question 9 of 34
★ FPSC ★ PPSC

What will be the value of 'x' after executing the code: int x = 5; x += 3; in C++?

Question 10 of 34
★ FPSC ★ PPSC

Which of the following is a unary operator in C++?

Question 11 of 34
★ FPSC ★ PPSC

What does the modulus operator (%) do in C++?

Question 12 of 34
★ FPSC ★ PPSC

What is the output of the following code: cout << (10 != 10); in C++?

Question 13 of 34
★ FPSC ★ PPSC

Which of the following is not a relational operator in C++?

Question 14 of 34
★ FPSC ★ PPSC

What will be the value of 'x' after executing the code: int x = 10; x--; in C++?

Question 15 of 34
★ FPSC ★ PPSC

What is the result of the expression: 2 * 3 + 5 / 2 in C++?

Question 16 of 34
★ FPSC ★ PPSC

What is the operator associativity of the assignment operator (=) in C++?

Question 17 of 34
★ FPSC ★ PPSC

What is the purpose of the modulo operator (%) in C++?

Question 18 of 34
★ FPSC ★ PPSC

What will be the output of the following code: cout << (5 == 5.0); in C++?

Question 19 of 34
★ FPSC ★ PPSC

Which operator is used to access the memory address of a variable in C++?

Question 20 of 34
★ FPSC ★ PPSC

What does the '++' operator do when used as a postfix operator?

Question 21 of 34
★ FPSC ★ PPSC

What will be the value of 'x' after executing the following code: int x = 5; x += 3; in C++?

Question 22 of 34
★ FPSC ★ PPSC

What is the purpose of the ternary operator (?:) in C++?

Question 23 of 34
★ FPSC ★ PPSC

What will be the output of the following code: cout << (4 > 3 ? "Yes" : "No"); in C++?

Question 24 of 34
★ FPSC ★ PPSC

What does the 'sizeof' operator return in C++?

Question 25 of 34
★ FPSC ★ PPSC

Which operator is having the highest precedence?

Question 26 of 34
★ FPSC ★ PPSC

What will be the output of the following C++ code? #include <iostream> using namespace std; int main () { int x, y; x = 5; y = ++x * ++x; cout << x << y; x = 5; y = x++ * ++x; cout << x << y; return 0; }

Question 27 of 34
★ FPSC ★ PPSC

What will be the output of the following C++ code? #include <iostream> using namespace std; int main() { int a = 5, b = 6, c, d; c = a, b; d = (a, b); cout << c << ' ' << d; return 0; }

Question 28 of 34
★ FPSC ★ PPSC

What will be the output of the following C++ code? #include <iostream> using namespace std; int main() { int a = 5, b = 6, c; c = (a > b) ? a : b; cout << c; return 0; }

Question 29 of 34
★ FPSC ★ PPSC

What is this operator called ?:?

Question 30 of 34
★ FPSC ★ PPSC

Which operator is having the right to left associativity in the following?

Question 31 of 34
★ FPSC ★ PPSC

What is the use of dynamic_cast operator?

Question 32 of 34
★ FPSC ★ PPSC

What will be the output of the following C++ code? #include <iostream> using namespace std; main() { double a = 21.09399; float b = 10.20; int c ,d; c = (int) a; d = (int) b; cout << c <<' '<< d; return 0; }

Question 33 of 34
★ FPSC ★ PPSC

What will be the output of the following C++ code? #include <iostream> using namespace std; int main() { int i, j; j = 10; i = (j++, j + 100, 999 + j); cout << i; return 0; }

Question 34 of 34
★ FPSC ★ PPSC

What will be the output of the following C++ code? #include <iostream> using namespace std; int main() { int a; a = 5 + 3 * 5; cout << a; return 0; }

✓ Link copied to clipboard
Continue Your Practice

Advance Html — Part 1

Master the next curriculum module with 40 exam-standard MCQs.

Next Practice Set →

💡 Examiner's Advisory for Programming & Software Development

In competitive commission exams (FPSC, PPSC, KPPSC, SPSC, CSS, PMS), questions are frequently phrased with distractor options designed to catch rote learners. Whenever you answer an MCQ, read the Detailed Academic Explanation and Conceptual Anchor to understand why the remaining options are incorrect.

More Modules in Programming & Software Development

View All →
📚

Study Guides

Topic summaries and syllabus breakdown

Explore Guides →
🎯

Complete Library

Search through 78,000+ verified MCQs

Browse Library →
📱

Mobile App

Offline mock tests and instant bookmarks

Get Mobile App →