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

From 271 to 285 of 820

Q. Which of the following results in a SyntaxError?

a. ‘”once upon a time…”, she said.’

b. “he said, ‘yes!\” c) ‘3\\’

  • c. d) ”’that’s okay”’

Q. >>>average = (grade1 + grade2) / 2

a. 85.0

b. 85.1

c. 95.0

d. 95.1

  • a. 85.0

Q. What is the return value of trunc()?

a. int

b. bool

c. float

d. none

  • a. int

Q. What is the output of print 0.1 + 0.2 == 0.3?

a. true

b. false

c. machine dependent

d. error

  • b. false

Q. Which of the following is not a complex number?

a. k = 2 + 3j

b. k = complex(2, 3)

c. k = 2 + 3l

d. k = 2 + 3j

  • c. k = 2 + 3l

Q. What type of structure is this?

a. sequence

b. case

c. repetition

d. process

  • c. repetition

Q. What type of a structure is this?

a. sequence

b. case

c. repetition

d. process

  • b. case

Q. The following box denotes?

a. decision

b. input/output

c. process

d. module

  • a. decision

Q.                              is used to show hierarchy in a pseudo code.

a. indentation

b. curly braces

c. round brackets

d. semicolon

  • a. indentation

Q.                            are identified by their addresses, we give them names (field names / variable names) using words.

a. memory variables

b. memory locations

c. memory addresses

d. data variables

  • b. memory locations

Q.                          begins with lower case letters.

a. keywords

b. variables

c. tokens

d. functions

  • b. variables

Q. Another notation for exponentiation.

a. *

b. ** c) ***

  • b. ** c) ***
Subscribe Now

Get All Updates & News