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

From 766 to 780 of 820

Q. 576)

a. 4.5

b. 5

Q. 5676,2)?

a. 4.5

b. 4.6

c. 4.57

d. 4.56

  • c. 4.57

Q. ,0,4.2)

a. true

b. false

  • c. error

Q. ,-4), 2,7)

a. 2

b. false

c. -3

d. -4

  • b. false

Q. +2j)

a. error

b. 1

c. 2j

d. 1+2j

  • d. 1+2j

Q. The function divmod(a,b), where both ‘a’ and ‘b’ are integers is evaluated as:

a. (a%b, a//b)

b. (a//b, a%b)

c. (a//b, a*b)

d. (a/b, a%b)

  • b. (a//b, a%b)

Q. Which of the following functions accepts only integers as arguments?

a. ord()

b. min()

c. chr()

d. any()

  • c. chr()

Q. Suppose there is a list such that: l=[2,3,4]. If we want to print this list in reverse order, which of the following methods should be used?

a. reverse(l)

b. list(reverse[(l)])

c. reversed(l)

d. list(reversed(l))

  • d. list(reversed(l))

Q. Which of the following functions does not throw an error?

a. ord()

b. ord(‘ ‘)

c. ord(”)

d. ord(“”)

  • b. ord(‘ ‘)

Q. Which of the following is the use of function in python?

a. functions are reusable pieces of programs

b. functions don’t provide better modularity for your application

c. you can’t also create your own functions

d. all of the mentioned

  • a. functions are reusable pieces of programs

Q. Which keyword is used for function?

a. fun

b. define

c. def

d. function

  • c. def
Subscribe Now

Get All Updates & News