Skip to main content

Data Types And Numeric Types — Part 1 MCQs with Explanations

Practice high-yield Programming & Software Development MCQs on Data Types And Numeric Types — 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 of the following is a valid data type in Python?

Question 2 of 40
★ FPSC ★ PPSC

What is the result of type(3.14) ?

Question 3 of 40
★ FPSC ★ PPSC

What data type is used to represent a sequence of characters in Python?

Question 4 of 40
★ FPSC ★ PPSC

What is the purpose of the str() function in Python?

Question 5 of 40
★ FPSC ★ PPSC

What is the result of type(True) ?

Question 6 of 40
★ FPSC ★ PPSC

How do you create a floating-point number in Python?

Question 7 of 40
★ FPSC ★ PPSC

What is the result of int(3.9) ?

Question 8 of 40
★ FPSC ★ PPSC

What is the data type of the result of 10 / 2 ?

Question 9 of 40
★ FPSC ★ PPSC

How do you convert a string containing an integer to an integer data type?

Question 10 of 40
★ FPSC ★ PPSC

Which of the following is not a numeric data type in Python?

Question 11 of 40
★ FPSC ★ PPSC

What is the result of complex(3, 4) ?

Question 12 of 40
★ FPSC ★ PPSC

What is the purpose of the round() function in Python?

Question 13 of 40
★ FPSC ★ PPSC

What is the result of 5 + 3.0 ?

Question 14 of 40
★ FPSC ★ PPSC

What is the result of "5" + "3" ?

Question 15 of 40
★ FPSC ★ PPSC

What is the result of 5 // 2 ?

Question 16 of 40
★ FPSC ★ PPSC

What is the imaginary part of the complex number 3 + 4j ?

Question 17 of 40
★ FPSC ★ PPSC

What is the result of int(3.999) ?

Question 18 of 40
★ FPSC ★ PPSC

What is the data type of the result of "True" ?

Question 19 of 40
★ FPSC ★ PPSC

What is the result of abs(3 + 4j) ?

Question 20 of 40
★ FPSC ★ PPSC

What is the result of divmod(10, 3) ?

Question 21 of 40
★ FPSC ★ PPSC

What is the result of len("Hello, World!") ?

Question 22 of 40
★ FPSC ★ PPSC

What is the result of int("5") + float("2.5") ?

Question 23 of 40
★ FPSC ★ PPSC

What is the result of round(3.14159, 2) ?

Question 24 of 40
★ FPSC ★ PPSC

What is the purpose of the complex() function in Python?

Question 25 of 40
★ FPSC ★ PPSC

What is the result of (3 + 4j) * (1 - 2j) ?

Question 26 of 40
★ FPSC ★ PPSC

What is the result of float("3.14") ?

Question 27 of 40
★ FPSC ★ PPSC

Which of these in not a core data type?

Question 28 of 40
★ FPSC ★ PPSC

Given a function that does not return any value, What value is thrown by default when executed in shell.

Question 29 of 40
★ FPSC ★ PPSC

In order to store values in terms of key and value we use what core data type.

Question 30 of 40
★ FPSC ★ PPSC

What is the type of inf?

Question 31 of 40
★ FPSC ★ PPSC

Which of the following results in a SyntaxError?

Question 32 of 40
★ FPSC ★ PPSC

What is the average value of the following Python code snippet? >>>grade1 = 80 >>>grade2 = 90 >>>average = (grade1 + grade2) / 2

Question 33 of 40
★ FPSC ★ PPSC

What does ~4 evaluate to?

Question 34 of 40
★ FPSC ★ PPSC

What is the output of print 0.1 + 0.2 == 0.3?

Question 35 of 40
★ FPSC ★ PPSC

The following is displayed by a print function call. Select all of the function calls that result in this output. tom dick harry

Question 36 of 40
★ FPSC ★ PPSC

What is the result of cmp(3, 1)?

Question 37 of 40
★ FPSC ★ PPSC

What will be the output of the following Python code? >>>str="hello" >>>str[:2] >>>

Question 38 of 40
★ FPSC ★ PPSC

What does ~~~~~~5 evaluate to?

Question 39 of 40
★ FPSC ★ PPSC

What data type is the object below? L = [1, 23, 'hello', 1]

Question 40 of 40
★ FPSC ★ PPSC

What is the result of round(0.5) - round(-0.5)?

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