Introduction to Python (IP)
Quiz
Unit-1:-
- Python was created by ( )
- Dennis Ritche
- James Gosling
- Guido van Rossum
- Bjarne Stroustrup.
- Find the output of the following python program ( )
x = 5
print (type(x))
- <class int>
- <class float>
- <class str>
- None of the above.
- What is the output of the following python program ( )
Str = “HelloWorld!”
Print(len(Str))
- 10
- 12
- 15
- 11
- When the break statement is executed, the python interpreter ( )
- None of the above
- Continues the loop
- Both b and d.
- Jumps out of the loop.
- List the sequence data types ( )
- int, float, complex
- set, frozenset
- list, tuple ,range
- bool
- What is the output of the following python program is ( )

- python is portable, python is easy to use.
- Python is easy to use, python is portable.
- python is portable.
- None of the above.
- Find the output of the following python program ( )
x = [“apple”, “banana”]
print(“banana” in x)
- 0
- 1
- True
- False
- Find the output of the following python program ( )
print (10 & 3) ( ) 1M.
- 2
- 4
- -1
- None of the above.
- Evaluate the following expression ( )
print(4/2*4+3+2**3-2)
- 22
- 17
- 625
- None of the above.
- Find the output of the following python program ( )

- 0
- Zaheer khan
- Saurav Ganguly
- 10
- What is the output of the following program( )

- John
- Jack
- Black
- displays an error message
12.What is the output of the following program( )

- orange,banana,cherry
- orange,cherry,banana
- banana,cherry,orange
- displays an error message
13.What is the output of the following program( )

- orange,banana,cherry
- apple,cherry,banana
- apple,banana,cherry
- displays an error message
14.What is the output of the following program( )

- python is language
- python is programming language
- C is programming language
- Java is programming language
- What is the output of the following program( )

- python is language
- python is high level language
- C is programming language
- python is portable
16.What is the output of the following program( )

- python is language
- python is high level language
- C is programming language
- python is portable
17.What is the output of the following program( )

- python
- Java
- None of the above
- python
Python
python
18.What is the output of the following program( )

- Java
- python
- c
- Java
Java
19.A variable inside a function can be converted into global variable by using the keyword—–
- Local
- Constant
- global
- int
20.The data types of the following variables are( )

- Complex,string,list,set
- List,set,string,complex
- List,string,complex,set
- Set,list,string,complex.
21.What is the output of the following program( )\

- Python,True,False,Java
- python,True,False,Java
- True,False,python,Java
- False,True,Java,python.
- What is the output of the following program( )

- 10,20,0,15,40
- 10,20,0,20,40
- 10,20,0,40,15
- 20,15,10,0,40.
- Fill up the blanks, The difference is that bytes array ————-be modified but the bytearray type array ———-modified.
- can be, can be
- can be, cannot be
- cannot be, can be
- cannot be, cannot be
- The difference between a list and an array is that a list can store ——————of elements but an array can store only —————-of elements.
- different types, one type
- one type, different types
- different types, different types
- one type, one type.
- What is the output of the following program( )

- 20,20,55.5
- 10,20,55.5
- 10,20,55.5,mango
- 20,55.5,mango
26.What is the output of the following program( )

- 30 32 36 38
- 30 32 36 38 40
- 32 36 38 40
- 32 36 38
27.What is the output of the following program( )

- larger is:5
- larger is:10
- larger is:0
- larger is:50
28.What is the output of the following program( )

- 1,2,3,4,5,
- 2,3,4,5,6,
- 1,2,3,4,5,6,
- 1,2,3,4,
29.What is the output of the following program( )

- m,a,n,g,o
- t,a,n,g,o
- a,n,g,o,m
- a,n,g,o
- The syntaxes of return and assert statements are( )
- return expression, assert expression
- return expression, assert message
- return expression, assert expression,message
- return message, assert message
31.When ‘break’ is executed, the python interpreter ————-and When ‘continue’ is executed, the —————will start.
- Next repetition, jumps out of loop
- jumps out of loop, Next repetition
- jumps out of loop, jumps out of loop
- Next repetition, Next repetition
32.What is the output of the following program( )

- mango,life
- apple,life
- life,mango
- life,apple
33.What is the output of the following program( )

- 10,9,8,7,
- 10 9 8 7
- 10*9*8*7*
- 10$9$8$7$
34.What is the output of the following program( )

- X,i,o,a,m,i,
- X.i.o.a.m.i.
- X$i$o$a$m$i$
- X*i*o*a*m*i*
35.State True or False ,The syntax of while loop is:

- True
- False
