PrimeGyan
Home
O Level
M1-R5
M2-R5
M3-R5
M4-R5
CCC
Programming
Online Test
Hindi
Home
Online-test
Test
Python-practice-set-5
13
Python Practice Set 5
Python Practice Set 1
Python Practice Set 2
Python Practice Set 3
Python Practice Set 4
Python Practice Set 5
Python Practice Set 6
Python Practice Set 7
Python Practice Set 8
Python Practice Set 9
Python Practice Set 5
1.
Tower of Honoi puzzle was built by __________.
Rasmus Lerdorf
James gosling
jolly Honoi
aduvard lucas
2.
Enumerate() is a method in Python that is used to assign an index to each item of an iterable object.
True
False
3.
Identify the sequence of steps to execute a program.
Link, Load, Code, Compile and execute
Code, Compile Link, execute and Load
Code, Compile, Link, Load and Execute
Compile, Code, Link, Load and Execute
4.
print(3**4) What will be the output after executing this?
12
7
64
81
5.
Which statement is not correct about list data type?
list is a type of data structure
The item of the list can be changed
Can not keep duplicate value in the list
Items of the list are in order
6.
What is the variable starting with double underscore called in python?
Protected variable
Magic variable
Private variable
static variable
7.
Which symbol cannot be used while creating a variable in python?
_ (underscore)
@
Both a & b
All of the above
8.
remove method removes the item of set,list, then which statement is correct for remove() method?
It returns 0 if the value is not found?
It gives error if the value is not found?
It returns -1 if the value is not found?
none of these
9.
What will be its output? print("Examjila[-1]")
E
e
a
Examjila[-1]
10.
What is a variable name starting with a single underscore called?
Magic variable
regular variable
function variable
protected variable
11.
Which of the following is not a correct statement about set data type?
set is unordered
The items of the set can be deleted
The items of the set can be accessed from the index value
The items of the set cannot be changed
12.
Full form of EOL is
Endless Line
End of Line
End of Lines
Ending of Line
13.
Where are triple quotes used?
To define a multiline string
To define the doc string
to make a comment
Both a and b
14.
Which is not a method to remove extra space from string?
strip()
removeSpace()
lstrip()
rstrip()
15.
What are the character data types in python?
True
False
16.
Which symbol is used to define list, tuple, set, dictionary?
[ ], ( ), { }, { }
[ ], ( ), ( }, { ]
{ }, ( ), [ ], [ ]
( ), { }, [ ], ( )
17.
String can be accessed by index value?
True
False
18.
Which statement is not correct for slicing in string? a="examjila"
a [ : ]
a [0 : 0]
a [ ]
a [-1:-1]
19.
What does the input() function return in python?
int value
float value
string value
NULL value
20.
How many types of typecasting in python?
4
2
1
3
21.
The output of print("10" + 15) will be?
1015
"10"+15
25
TypeError
22.
Command Prompt is part of the Operating System
True
False
23.
Which of the following is the fourth generation programming language?
Python
C Language
SQL & Focus
COBOL
24.
Python does not support Functional Programming.
True
False
25.
In Python, what can be passed to a function as an argument?
True
False
Submitting..
Welcome To PrimeGyan
Start test
Download