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

From 256 to 270 of 820

Q. Operators with the same precedence are evaluated in which manner?

a. left to right

b. right to left

c. can’t say

d. none of the mentioned

  • a. left to right

Q. What is the output of this expression, 3*1**3?

a. 27

b. 9

c. 3

d. 1

Q. Which one of the following has the same precedence level?

a. addition and subtraction

b. multiplication, division and addition

c. multiplication, division, addition and subtraction

d. addition and multiplication

  • a. addition and subtraction

Q. Which one of the following has the highest precedence in the expression?

a. exponential

b. addition

c. multiplication

d. parentheses

  • d. parentheses

Q. Which of these in not a core data type?

a. lists

b. dictionary

c. tuples

d. class

  • d. class

Q. 3 DATA TYPES

a. he

b. lo

c. olleh

d. hello

  • a. he

Q. Which of the following will run without errors?

a. round(45.8)

b. round(6352.898,2,5)

c. round()

d. round(7463.123,2,1)

  • a. round(45.8)

Q. What is the return type of function id?

a. int

b. float

c. bool

d. dict

  • a. int

Q. >>>x = 13 ? 2

a. x = 13 // 2

b. x = int(13 / 2)

c. x = 13 % 2

d. all of the mentioned

  • d. all of the mentioned

Q. >>>example("hello")

a. indentation error

b. cannot perform mathematical operation on strings

c. hello2

d. hello2hello2

  • a. indentation error

Q. , 23, 'hello', 1]

a. list

b. dictionary

c. array

d. tuple

  • a. list

Q. In order to store values in terms of key and value we use what core data type.

a. list

b. tuple

c. class

d. dictionary

  • d. dictionary
Subscribe Now

Get All Updates & News