Top 1000+ Solved Problem Solving and Python Programming MCQ Questions Answer

From 241 to 255 of 820

Q. Another notation for exponentiation.

a. *

b. ** c) ***

  • b. ** c) ***

Q. A symbol used for grouping.

a. ()

b. {} c) [].

  • a. ()

Q. A statement used to close the IF block.

a. else

b. elseif

c. end

d. endif

  • d. endif

Q. Is Python case sensitive when dealing with identifiers?

a. yes

b. no

c. machine dependent

d. none of the mentioned

  • a. yes

Q. What is the maximum possible length of an identifier?

a. 31 characters

b. 63 characters

c. 79 characters

d. none of the mentioned

  • d. none of the mentioned

Q. Which of the following is invalid?

a. _a = 1

b. a = 1

c. str     = 1

d. none of the mentioned

  • d. none of the mentioned

Q. Which of the following is an invalid variable?

a. my_string_1

b. 1st_string

c. foo

d. _

  • b. 1st_string

Q. Why are local variable names beginning with an underscore discouraged?

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

  • a. they are used to indicate a private variables of a class

Q. Which of the following is not a keyword?

a. eval

b. assert

c. nonlocal

d. pass

  • a. eval

Q. All keywords in Python are in                    

a. lower case

b. upper case

c. capitalized

d. none of the mentioned

  • d. none of the mentioned

Q. Which of the following is an invalid statement?

a. abc = 1,000,000

b. a b c = 1000 2000 3000

c. a,b,c = 1000, 2000, 3000

d. a_b_c = 1,000,000

  • b. a b c = 1000 2000 3000

Q. Which of the following cannot be a variable?

a. init

b. in

c. it

d. on

  • b. in

Q. Which is the correct operator for power(xy)?

a. x^y

b. x**y

c. x^^y

d. none of the mentioned

  • b. x**y

Q. Which one of these is floor division?

a. /

b. //

c. %

d. none of the mentioned

  • b. //
Subscribe Now

Get All Updates & News