Skip to main content

Python Built In Functions — Part 2 MCQs with Explanations

Practice high-yield Programming & Software Development MCQs on Python Built In Functions — Part 2 with worked academic solutions for FPSC, PPSC, NTS, NITB, PTS.

Questions
15
Difficulty Level
Exam-Level
Target Exams
FPSC, PPSC, NTS...
Estimated Time
18 mins
📚 Module Parts in this Series (2 Parts):
Part 1 (40Q) ✓ Part 2 (15Q)
Exam-Level FPSC PPSC NTS NITB PTS
Content updated Oct 14, 2026
These practice questions are independent study material, not an official commission answer key. ExamHub.pk is reviewing older question sets; check important facts against the relevant commission's syllabus or another primary source. Report a correction.
15

Practice Questions

Interactive test mode with detailed academic worked solutions

Live Progress | 0/15 answered
✓ 0 correct ✗ 0 wrong 0% score
Question 1 of 15

Which built-in function is used to convert a value to a floating-point number?

Question 2 of 15

What will be the output of the following Python function? import math abs(math.sqrt(25))

Question 3 of 15

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

Question 4 of 15

What will be the output of the following Python function? sum(2,4,6) sum([1,2,3])

Question 5 of 15

Which built-in function is used to capitalize the first letter of a string?

Question 6 of 15

Which of the following functions will not result in an error when no arguments are passed to it?

Question 7 of 15

The function pow(x,y,z) is evaluated as:

Question 8 of 15

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

Question 9 of 15

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

Question 10 of 15

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

Question 11 of 15

Which of the following functions accepts only integers as arguments?

Question 12 of 15

What will be the output of the following Python function? divmod(10.5,5) divmod(2.4,1.2)

Question 13 of 15

What will be the output of the following code: my_list = [1, 2, 3, 4] print(len(my_list))

Question 14 of 15

The function complex('2-3j') is valid but the function complex('2 - 3j') is invalid.

Question 15 of 15

Suppose there is a list such that: l=[2,3,4]. If we want to print this list in reverse order, which of the following methods should be used?

✓ Link copied to clipboard

💡 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 the practice question library

Browse Library →
📱

Mobile App

Offline mock tests and instant bookmarks

Get Mobile App →