Q.204. Which keyword can be used to handle an exception in Python?
Q.204. Which keyword can be used to handle an exception in Python?
Q.188.Which keyword is used to define a class in Python?
Q.188.Which keyword is used to define a class in Python?
Q.187. What is the purpose of the ord()
function in Python?
Q.187. What is the purpose of the ord()
function in Python?
Q.186.. Which of the following is NOT a valid Python string method?
Q.186.. Which of the following is NOT a valid Python string method?
Q.185. What is the purpose of the eval()
function in Python?
Q.185. What is the purpose of the eval()
function in Python?
Q.184. What is the purpose of the time
module in Python?
Q.184. What is the purpose of the time
module in Python?
Q.183. Which of the following is used to define a tuple comprehension in Python?
Q.183. Which of the following is used to define a tuple comprehension in Python?
Q.182.What is the purpose of the split()
method in Python strings?
Q.182.What is the purpose of the split()
method in Python strings?
Q.180.Which keyword is used to handle exceptions in Python?
Q.180.Which keyword is used to handle exceptions in Python?
Q.179. What is the purpose of the str()
function in Python?
Q.179. What is the purpose of the str()
function in Python?
Q.178.. Which of the following is NOT a valid Python list method?
Q.178.. Which of the following is NOT a valid Python list method?
Q.189. What is the purpose of the json
module in Python?
Q.189. What is the purpose of the json
module in Python?
Q.190. Which of the following is used to convert a string to lowercase in Python?
Q.190. Which of the following is used to convert a string to lowercase in Python?
Q.191. What is the purpose of the logging
module in Python?
Q.191. What is the purpose of the logging
module in Python?
Q203.Which string method removes white spaces from both the beginning and the end?
Q203.Which string method removes white spaces from both the beginning and the end?
Q.202. Which method checks if the string starts with a particular substring?
Q.202. Which method checks if the string starts with a particular substring?
Q.201. Which of the following creates a new reference to the same list?
Q.201. Which of the following creates a new reference to the same list?
Q.200.Which of the following is true for variables in Python?
Q.200.Which of the following is true for variables in Python?
Q.199.Which method is used to remove all items from a dictionary?
Q.199.Which method is used to remove all items from a dictionary?
Q.198.Which method returns a list of all the values in the dictionary?
Q.198.Which method returns a list of all the values in the dictionary?
Q.197. What is the output of 5 // 2?
Q.197. What is the output of 5 // 2?
Q.196. Which of the following is used to check if a key exists in a Python dictionary?
Q.196. Which of the following is used to check if a key exists in a Python dictionary?
Q.194. What is the purpose of the zip()
function in Python?
Q.194. What is the purpose of the zip()
function in Python?
Q.193.Which operator is used for exponentiation in Python?
Q.193.Which operator is used for exponentiation in Python?
Q.177.What is the purpose of the map()
function in Python?
Q.177.What is the purpose of the map()
function in Python?
Q.176. What is the purpose of the os.path
module in Python?
Q.176. What is the purpose of the os.path
module in Python?
Q.121. Which operator is used for floor division in Python?
Q.121. Which operator is used for floor division in Python?
Q.120. What is the purpose of the with
statement in Python?
Q.120. What is the purpose of the with
statement in Python?
Q.119.Which of the following is NOT a valid Python numeric data type?
Q.119.Which of the following is NOT a valid Python numeric data type?
Q.118. What is the purpose of the join()
method in Python strings?
Q.118. What is the purpose of the join()
method in Python strings?
Q.117. Which keyword is used to define a class in Python?
Q.117. Which keyword is used to define a class in Python?
Q.116. What is the purpose of the strip()
method in Python strings?
Q.116. What is the purpose of the strip()
method in Python strings?
Q.115.. Which of the following is NOT a valid Python comparison operator?
Q.115.. Which of the following is NOT a valid Python comparison operator?
Q.111.Which operator is used for string concatenation in Python?
Q.111.Which operator is used for string concatenation in Python?
Q.110.What is the purpose of the try-except
block in Python?
Q.110.What is the purpose of the try-except
block in Python?
Q.109. Which of the following is NOT a valid Python list method?
Q.109. Which of the following is NOT a valid Python list method?
Q.122.. What is the purpose of the sys
module in Python?
Q.122.. What is the purpose of the sys
module in Python?
Q.123. Which of the following is used to define a tuple in Python?
Q.123. Which of the following is used to define a tuple in Python?
Q.124.What is the purpose of the lambda
keyword in Python?
Q.124.What is the purpose of the lambda
keyword in Python?
Q.175. What is the purpose of the math
module in Python?
Q.175. What is the purpose of the math
module in Python?
Q.174.Which of the following is used to convert a string to uppercase in Python?
Q.174.Which of the following is used to convert a string to uppercase in Python?
Q.173.What is the purpose of the random.choice()
function in Python?
Q.173.What is the purpose of the random.choice()
function in Python?
Q.172.What is the purpose of the any()
function in Python
Q.172.What is the purpose of the any()
function in Python
Q.131.Which operator is used for logical AND in Python?
Q.131.Which operator is used for logical AND in Python?
Q.130.What is the purpose of the os
module in Python?
Q.130.What is the purpose of the os
module in Python?
Q.129. Which of the following is used to define a constant in Python?
Q.129. Which of the following is used to define a constant in Python?
Q.128. What is the purpose of the super()
function in Python?
Q.128. What is the purpose of the super()
function in Python?
Q.126. Which operator is used for membership testing in Python?
Q.126. Which operator is used for membership testing in Python?
Q.125. What is the purpose of the self
parameter in Python class methods?
Q.125. What is the purpose of the self
parameter in Python class methods?
Q.108.What is the purpose of the open()
function in Python?
Q.108.What is the purpose of the open()
function in Python?