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
Exam-Level FPSC PPSC NTS NITB PTS
Verified for Commission Syllabus • Oct 14, 2026
15

Verified 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
★ FPSC ★ PPSC

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

Question 2 of 15
★ FPSC ★ PPSC

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

Question 3 of 15
★ FPSC ★ PPSC

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

Question 4 of 15
★ FPSC ★ PPSC

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

Question 5 of 15
★ FPSC ★ PPSC

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

Question 6 of 15
★ FPSC ★ PPSC

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

Question 7 of 15
★ FPSC ★ PPSC

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

Question 8 of 15
★ FPSC ★ PPSC

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

Question 9 of 15
★ FPSC ★ PPSC

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

Question 10 of 15
★ FPSC ★ PPSC

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

Question 11 of 15
★ FPSC ★ PPSC

Which of the following functions accepts only integers as arguments?

Question 12 of 15
★ FPSC ★ PPSC

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

Question 13 of 15
★ FPSC ★ PPSC

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

Question 14 of 15
★ FPSC ★ PPSC

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

Question 15 of 15
★ FPSC ★ PPSC

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