Unit 3 Built in Data Types

5th sem New Syllabus

Unit 3 Built in Data Types

1 / 19

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

2 / 19

What is the result of the expression 5 // 2 ?

3 / 19

What will be the output of the following code: print("Hello" + " " + "World")?

4 / 19

Which method can be used to convert a string to uppercase in Python?

5 / 19

What will be the result of the expression bool(0)?

6 / 19

Which function is used to sort a list in Python?

7 / 19

What will be the output of the following code: sorted([3, 1, 2])?

8 / 19

Which of the following is used to create a binary literal ?

9 / 19

Which of the following is a mutable sequence type ?

10 / 19

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

11 / 19

Which of the following is a built-in mapping type ?

12 / 19

Which method can be used to check if all characters in a string are digits?

13 / 19

What is the output of the following code: sorted(['banana', 'apple', 'cherry'])?

14 / 19

Which of the following sequence types is immutable?

15 / 19

Which method is used to get a value from a dictionary in Python if the key might not exist?

16 / 19

Which method is used to split a string into a list?

17 / 19

Which method converts a bytes object to a string in Python?

18 / 19

Which function is used to round a number to the nearest integer in Python?

19 / 19

Which method can be used to check if a string starts with a specific substring in Python?

Your score is

The average score is 0%

0%

unit 3 python (1)unit 3 python (2)unit 3 python (3)unit 3 python (4)unit 3 python (5)unit 3 python (6)unit 3 python (7)unit 3 python (8)unit 3 python (9)unit 3 python (10)unit 3 python (11)unit 3 python (12)unit 3 python (13)unit 3 python (14)unit 3 python (15)

unit 3 python (16)unit 3 python (17)unit 3 python (18)

Leave a Reply

Your email address will not be published. Required fields are marked *