Operators And Expressions — Part 1 MCQs with Explanations
Practice high-yield Programming & Software Development MCQs on Operators And Expressions — Part 1 with worked academic solutions for FPSC, PPSC, NTS, NITB, PTS.
Questions
40
Difficulty Level
Exam-Level
Target Exams
FPSC, PPSC, NTS...
Estimated Time
48 mins
Exam-Level FPSC PPSC NTS NITB PTS
Verified for Commission Syllabus • Oct 14, 2026
40
Verified Practice Questions
Interactive test mode with detailed academic worked solutions
Live Progress | 0/40 answered
✓ 0 correct
✗ 0 wrong
0% score
🎉 Set complete! All 40 questions answered.
Question 1 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Question 2 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which operator is used for logical OR in C?
Question 3 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What does the ++ operator do in C when applied to a variable?
Question 4 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which operator is used for modulus division in C?
Question 5 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of the expression 8 / 3 in C?
Question 6 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the order of precedence of the arithmetic operators in C?
Question 7 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of the expression 10 - 5 * 2 in C?
Question 8 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which operator is used for equality comparison in C?
Question 9 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of the expression (6 - 2) * (1 + 2) in C?
Question 10 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of the expression 7 / 2 in C?
Question 11 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of the expression 5 % 3 in C?
Question 12 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which operator is used for logical NOT in C?
Question 13 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of the expression 10 / 0 in C?
Question 14 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which operator is used for assignment in C?
Question 15 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which operator is used to perform a bitwise AND operation in C?
Question 16 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of the expression 5 / 2 in C?
Question 17 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the order of precedence of the logical operators in C?
Question 18 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of the expression (10 + 2) / 2 in C?
Question 19 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which operator is used for inequality comparison in C?
Question 20 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of the expression 2.5 + 2 in C?
Question 21 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of the expression 8 % 4 in C?
Question 22 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which operator is used to perform a bitwise OR operation in C?
Question 23 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of the expression 1 && 0 in C?
Question 24 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of the expression 5 * (1 + 2) - 3 in C?
Question 25 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which operator is used to perform a bitwise XOR operation in C?
Question 26 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of the expression (6 + 3) / 0 in C?
Question 27 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of the expression 5 / 2.0 in C?
Question 28 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following operator takes only integer operands?
Question 29 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
In an expression involving || operator, evaluation I. Will be stopped if one of its components evaluates to false II. Will be stopped if one of its components evaluates to true III. Takes place from right to left IV. Takes place from left to right
Question 30 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Determine output: void main() { int i=0, j=1, k=2, m; m = i++ || j++ || k++; printf("%d %d %d %d", m, i, j, k); }
Question 31 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Determine output: void main() { int c = - -2; printf("c=%d", c); }
Question 32 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Determine output: void main() { int i=10; i = !i>14; printf("i=%d", i); }
Question 33 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the output of the following program? void main() { int a, b, c, d; a = 3; b = 5; c = a, b; d = (a, b); printf("c=%d d=%d", c, d); }
Question 34 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the output of this program on an implementation where "int" occupies 2 bytes? #include <stdio.h> void main() { int i = 3; int j; j = sizeof(++i + ++i); printf("i=%d j=%d", i, j); }
Question 35 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which operator has the lowest priority?
Question 36 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the output? void main(){ int a=10, b=20; char x=1, y=0; if(a,b,x,y){ printf("EXAM"); } }
Question 37 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What number will z in the sample code given below? int z, x=5, y= -10, a=4, b=2; z = x++ - --y*b/a;
Question 38 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the output of the following statements? int i = 0; printf("%d %d", i, i++);
Question 39 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the output of the following statements? int b=15, c=5, d=8, e=8, a; a = b>c ? c>d ? 12 : d>e ? 13 : 14 : 15; printf("%d", a);
Question 40 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the output of the following code fragment? void main() { printf("%x",-1<<4); }
✓ Link copied to clipboard
Continue Your Practice
Next Practice Set → Advance Html — Part 1
Master the next curriculum module with 40 exam-standard MCQs.
💡 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.