Question
a.
they are used to indicate a private variables of a class
b.
they confuse the interpreter
c.
they are used to indicate global variables
d.
they slow down execution
Posted under Python
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Why are local variable names beginning with an underscore discouraged?
Similar Questions
Discover Related MCQs
Q. All keywords in Python are in
View solution
Q. Which of the following is true for variable names in Python?
View solution
Q. Which of the following is an invalid statement?
View solution
Q. Which of the following cannot be a variable?
View solution
Q. Which is the correct operator for power(x^y)?
View solution
Q. Which one of these is floor division?
View solution
Q. What is the order of precedence in python?
i) Parentheses
ii) Exponential
iii) Multiplication
iv) Division
v) Addition
vi) Subtraction
View solution
Q. What is answer of this expression, 22 % 3 is?
View solution
Q. Mathematical operations can be performed on a string. State whether true or false.
View solution
Q. Which of these in not a core data type?
View solution
Q. Given a function that does not return any value, What value is thrown by default when executed in shell.
View solution
Q. Which of the following will run without errors ?
View solution
Q. What is the return type of function id ?
View solution
Q. In python we do not specify types,it is directly interpreted by the compiler, so consider the following operation to be performed.
>>>x = 13 ? 2
objective is to make sure x has a integer value, select all that apply (python 3.xx)
View solution
Q. What data type is the object below ?
L = [1, 23, ‘hello’, 1].
View solution
Q. In order to store values in terms of key and value we use what core data type.
View solution
Q. Which of the following results in a SyntaxError ?
View solution
Q. The following is displayed by a print function call:
tom
dick
harry
Select all of the function calls that result in this output
View solution
Q. Select all options that print:
hello-how-are-you
View solution
Q. What is the return value of trunc() ?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Python? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!