Skip to main content

Python Built In Functions — Part 1 MCQs with Explanations

Practice high-yield Programming & Software Development MCQs on Python Built In Functions — 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
Question 1 of 40
★ FPSC ★ PPSC

Which built-in function is used to find the smallest item in an iterable?

Question 2 of 40
★ FPSC ★ PPSC

What does the built-in function round() do in Python?

Question 3 of 40
★ FPSC ★ PPSC

What does the built-in function max() do in Python?

Question 4 of 40
★ FPSC ★ PPSC

Which built-in function is used to check if all elements in an iterable are true?

Question 5 of 40
★ FPSC ★ PPSC

What does the built-in function enumerate() do in Python?

Question 6 of 40
★ FPSC ★ PPSC

Which built-in function is used to convert a value to an integer?

Question 7 of 40
★ FPSC ★ PPSC

What does the built-in function bool() do in Python?

Question 8 of 40
★ FPSC ★ PPSC

Which built-in function is used to calculate the absolute value of a number?

Question 9 of 40
★ FPSC ★ PPSC

What is the purpose of the built-in function dir()?

Question 10 of 40
★ FPSC ★ PPSC

What is the output of the following code: my_string = "Hello, World!" print(my_string.upper())

Question 11 of 40
★ FPSC ★ PPSC

What will be the output of the following Python function? any([2>8, 4>2, 1>2])

Question 12 of 40
★ FPSC ★ PPSC

The function divmod(a,b), where both 'a' and 'b' are integers is evaluated as:

Question 13 of 40
★ FPSC ★ PPSC

What does the built-in function hex() do in Python?

Question 14 of 40
★ FPSC ★ PPSC

What is the output of the following code: my_list = [True, False, True] print(any(my_list))

Question 15 of 40
★ FPSC ★ PPSC

What will be the output of the following Python expression? round(4.5676,2)?

Question 16 of 40
★ FPSC ★ PPSC

What will be the output of the following Python function? float(‘-infinity’) float(‘inf’)

Question 17 of 40
★ FPSC ★ PPSC

What will be the output of the following Python function? all(3,0,4.2)

Question 18 of 40
★ FPSC ★ PPSC

What is the output of the function complex()?

Question 19 of 40
★ FPSC ★ PPSC

What will be the output of the following Python function? oct(7) oct(‘7’)

Question 20 of 40
★ FPSC ★ PPSC

What is the output of the following code: my_list = [1, 2, 3, 4] print(sum(my_list))

Question 21 of 40
★ FPSC ★ PPSC

What will be the output of the following Python functions? chr(‘97’) chr(97)

Question 22 of 40
★ FPSC ★ PPSC

What is the output of the following code: my_list = [5, 8, 2, 6] print(max(my_list))

Question 23 of 40
★ FPSC ★ PPSC

What will be the output of the following code: my_string = " Hello, World! " print(my_string.strip())

Question 24 of 40
★ FPSC ★ PPSC

What will be the output of the following code: my_string = "Hello, World!" print(my_string.lower())

Question 25 of 40
★ FPSC ★ PPSC

What will be the output of the following Python function? complex(1+2j)

Question 26 of 40
★ FPSC ★ PPSC

Which built-in function is used to convert a value to a string?

Question 27 of 40
★ FPSC ★ PPSC

What does the built-in function type() do in Python?

Question 28 of 40
★ FPSC ★ PPSC

What will be the output of the following Python function? float(' -12345\n') (Note that the number of blank spaces before the number is 5)

Question 29 of 40
★ FPSC ★ PPSC

Which of the following functions does not throw an error?

Question 30 of 40
★ FPSC ★ PPSC

What is the output of the following code: my_list = [3, 1, 4, 1] print(sorted(my_list))

Question 31 of 40
★ FPSC ★ PPSC

Which of the following functions does not necessarily accept only iterables as arguments?

Question 32 of 40
★ FPSC ★ PPSC

What is the output of the following code: my_list = [1, 2, 3] print(list(reversed(my_list)))

Question 33 of 40
★ FPSC ★ PPSC

What will be the output of the following Python functions? float('1e-003') float('2e+003')

Question 34 of 40
★ FPSC ★ PPSC

What will be the output of the following Python function? ord(65) ord(‘A’)

Question 35 of 40
★ FPSC ★ PPSC

What does the built-in function chr() do in Python?

Question 36 of 40
★ FPSC ★ PPSC

What will be the output of the following Python function? list(enumerate([2, 3]))

Question 37 of 40
★ FPSC ★ PPSC

Which built-in function is used to calculate the length of a sequence like a list or string?

Question 38 of 40
★ FPSC ★ PPSC

What will be the output of the following Python function? all([2,4,0,6])

Question 39 of 40
★ FPSC ★ PPSC

What will be the output of the following Python functions? x=3 eval('x^2')

Question 40 of 40
★ FPSC ★ PPSC

What is the purpose of the built-in function ord()?

✓ 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 →