PYTHON MOCK TEST-2

1 / 27

What can we have with an elif ladder?

2 / 27

What is the order of precedence in Python?

 

3 / 27

Which of the following functions can be used to compare two strings in Python?

4 / 27

Which ofthe following is not a data type?

5 / 27

statement skips the rest of the loop and jumps over to the statement following the loop.

6 / 27

Which ofthe following data types are considered mutable in Python?

7 / 27

What will be the output of the below line of code?

8 / 27

Operators with the same precedence are evaluated in which manner?

9 / 27

What is the Python function to toggle the case of a string (i.e., convert uppercase to lowercase and vice versa)?

10 / 27

What will be the output of this code?
What win be the of this

if 10>5:

 

11 / 27

One loop inside another loop is called

12 / 27

Does floor division round the resultant value down to the nearest integer?

13 / 27

What is the default separator used by the split() method in Python?

14 / 27

'Simple if' has to check how many conditions?

15 / 27

All Keywords in Python are in

16 / 27

Which of the following are Identity Operators?

17 / 27

While loop can be compared with a repetitive

18 / 27

Why do we use Indentation?

19 / 27

Which ofthe following statements is true regarding the find() method in Python?

20 / 27

How do you remove all spaces from a string in Python?

21 / 27

What is the output of the code?

22 / 27

Which are the numeric types in Python?

23 / 27

What are the 3 loop control statements in Python?

24 / 27

According to the flowchart of if-elif-else, what happens when the control goes to the else block?

25 / 27

Which ofthe following is the correct syntax for Python string slicing?

26 / 27

Dictionaries are used to store data values in?

27 / 27

Modulus and Assign Operator are written as?

Your score is

The average score is 0%

0%

Scroll to Top