Precedence And Associativity — Part 1 MCQs with Explanations
Practice high-yield Programming & Software Development MCQs on Precedence And Associativity — 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
What is the result of 2 ** 3 ** 2 ?
Question 3 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of 5 - 2 + 1 ?
Question 4 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of 2 * 3 % 4 ?
Question 5 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of 12 // 4 / 2 ?
Question 6 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of (5 - 2) * 2 ?
Question 7 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of 10 / 2 / 5 ?
Question 8 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of (8 - 4) * 2 / 4 ?
Question 9 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of 3 + 2 * (5 - 3) ?
Question 10 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of 10 + 2 * 6 / 3 ?
Question 11 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of 4 * 3 % 5 ?
Question 12 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of 3 + 4 * 5 ?
Question 13 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of (2 + 3) * (5 - 1) ?
Question 14 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of 8 / 2 ** 2 ?
Question 15 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of 4 + 3 ** 2 % 2 ?
Question 16 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of 3 + 2 * 4 ** 2 ?
Question 17 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of 2 ** 3 % 3 ?
Question 18 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of 10 - 3 + 2 ?
Question 19 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of 8 - 6 / 2 ?
Question 20 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of 5 % 3 ** 2 ?
Question 21 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which operator has the highest precedence in Python?
Question 22 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of 3 ** 2 // 3 ?
Question 23 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the result of 10 / 2 ** 2 * 2 ?
Question 24 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The expression 2**2**3 is evaluates as: (2**2)**3.
Question 25 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the value of the following Python expression? 4+2**5//10
Question 26 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is the truncation division operator?
Question 27 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following expressions involves coercion when evaluated in Python?
Question 28 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the value of x in the following Python expression? x = int(43.55+2/2)
Question 29 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the value of the following expression? 8/4/2, 8/(4/2)
Question 30 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the value of X in the following Python expression? X = 2+9*((3*12)-8)/10
Question 31 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following operators has its associativity from right to left?
Question 32 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What will be the value of the following Python expression? float(4+int(2.39)%2)
Question 33 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same.
Question 34 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following expressions is an example of type conversion?
Question 35 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the value of the following expression? 2+4.00, 2**4.0
Question 36 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What is the value of the following expression? float(22//3+3/3)
Question 37 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which among the following list of operators has the highest precedence? +, -, **, %, /, <<, >>, |
Question 38 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
What are the values of the following Python expressions? 2**(3**2) (2**3)**2 2**3**2
Question 39 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following expressions results in an error?
Question 40 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Evaluate the expression given below if A = 16 and B = 15. A % B // A
✓ 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.