PYTHON QUIZ 1

11
Created on By Sirjana GhimireAcharya

PYTHON QUIZ 1

1 / 10

1. What is a correct syntax to output "Hello World" in Python?

2 / 10

2. How do you insert COMMENTS in Python code?

3 / 10

3. In Python 3, the maximum value for an integer is 263 - 1:

4 / 10

4.  What is the output of the following code?

for i in range(10, 15, 1):
print( i, end=', ')

5 / 10

5. What is the output of the following

x = 36 / 4 * (3 + 2) * 4 + 2
print(x)

6 / 10

6. In Python 3, what is the type of type(range(5))

7 / 10

7. What is the data type of print(type(10))

8 / 10

8.  What is the output of following code −

[ (a,b) for a in range(3) for b in range(a) ]

9 / 10

9. Which operator is right-associative

10 / 10

10.  What is output of following code

l = [1,2,6,5,7,8]
l.insert(9)

 

Your score is

The average score is 48%

0%