# Python Build-in Function Quiz -50 Questions

Here you will get 50+ questions of Python Build-in Function that will be randomly generated and you will get 4 answers among them you have to select the correct one.

After solving the quiz you will see the score that you solve and you will get mail and you can generate your certificated.

Contents

a) seed()
b) sqrt()
c) factorial()
d) print()

## 2. What will be the output of the following Python expression?

`round(4.576)`

a) 4.5
b) 5
c) 4
d) 4.6

a) (x**y)**z
b) (x**y) / z
c) (x**y) % z
d) (x**y)*z

## 4. What will be the output of the following Python function?

`all([2,4,0,6])`

a) Error
b) True
c) False
d) 0

## 5. What will be the output of the following Python expression?

`round(4.5676,2)?`

a) 4.5
b) 4.6
c) 4.57
d) 4.56

## 6. What will be the output of the following Python function?

`any([2>8, 4>2, 1>2])`

a) Error
b) True
c) False
d) 4>2

## 7. What will be the output of the following Python function?

```import math

abs(math.sqrt(25))```

a) Error
b) -5
c) 5
d) 5.0

## 8. What will be the output of the following Python function?

```sum(2,4,6)

sum([1,2,3])```

a) Error, 6
b) 12, Error
c) 12, 6
d) Error, Error

## 9. What will be the output of the following Python function?

`all(3,0,4.2)`

a) True
b) False
c) Error
d) 0

## 10. What will be the output of the following Python function?

`min(max(False,-3,-4), 2,7)`

a) 2
b) False
c) -3
d) -4

## 11. What will be the output of the following Python functions?

```chr(โ97โ)

chr(97)```

a)

• a
• Error

b)

• โaโ
• a

c)

• Error
• a

d)

• Error
• Error

## 12. What will be the output of the following Python function?

`complex(1+2j)`

a) Error
b) 1
c) 2j
d) 1+2j

a) 0j
b) 0+0j
c) 0
d) Error

## 14. 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)

15. What will be the output of the following Python function?

```divmod(10.5,5)

divmod(2.4,1.2)```

a)

• (2.00, 0.50)
• (2.00, 0.00)

b)

• (2, 0.5)
• (2, 0)

c)

• (2.0, 0.5)
• (2.0, 0.0)

d)

• (2, 0.5)
• (2)

a) True
b) False

c) Both a and b

d) None

## 17. What will be the output of the following Python function?

`list(enumerate([2, 3]))`

a) Error
b) [(1, 2), (2, 3)]
c) [(0, 2), (1, 3)]
d) [(2, 3)]

```x=3

eval('x^2')```

a) Error
b) 1
c) 9
d) 6

## 19. What will be the output of the following Python functions?

```float('1e-003')

float('2e+003')```

a)

• 3.00
• 300

b)

• 0.001
• 2000.0

c)

• 0.001
• 200

d)

• Error
• 2003

a) enumerate()
b) all()
c) chr()
d) max()

a) ord()
b) min()
c) chr()
d) any()

## 22. 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))

## 23. What will be the output of the following Python function?

`float('ย ย  -12345\n')`

(Note that the number of blank spaces before the number is 5)

a) โย -12345.0 (5 blank spaces before the number)
b) -12345.0
c) Error
d) -12345.000000000โฆ. (infinite decimal places)

## 24. What will be the output of the following Python function?

```ord(65)

ord(โAโ)```

a)

• A
• 65

b)

• Error
• 65

c)

• A
• Error

d)

• Error
• Error

## 25. What will be the output of the following Python function?

```float(โ-infinityโ)

float(โinfโ)```

a)

• โinf
• inf

b)

• โinfinity
• inf

c)

• Error
• Error

d)

• Error
• Junk value

a) min()
b) divmod()
c) all()
d) float()

## 27. What will be the output of the following Python function?

`hex(15)`

a) f
b) 0xF
c) 0Xf
d) 0xf

a) ord()
b) ord(โ โ)
c) ord(โ)
d) ord(โโ)

## 29. What will be the output of the following Python function?

`len(["hello",2, 4, 6])`

a) 4
b) 3
c) Error
d) 6

## 30. What will be the output of the following Python function?

```oct(7)

oct(โ7โ)```

a)

• Error
• 07

b)

• 0o7
• Error

c)

• 0o7
• Error

d)

• 07
• 0o7

a) abs()
b) all()
c) any()
d) bin()

ย a) abs()
b) all()
c) any()
d) bin()

ย a) abs()
b) all()
c) any()
d) bin()

a) abs()
b) all()
c) any()
d) bin()

a) bool()
b) bytes()
c) char()
d) bin()

a) bool()
b) bytes()
c) char()
d) bin()

a) bool()
b) bytes()
c) char()
d) bin()

a) bool()
b) bytearray()
c) char()
d) bin()

a) bool()
b) bytearray()
c) char()
d) compile()

a) bool()
b) bytearray()
c) callable()
d) compile()

a) bool()
b) complex()
c) callable()
d) compile()

a) dict()
b) dir()
c) callable()
d) compile()

a) eval()
b) filter()
c) float()
d) format()

a) eval()
b) filter()
c) float()
d) format()

a) eval()
b) filter()
c) float()
d) format()

a) eval()
b) frozenset()
c) float()
d) format()

a) input()
b) id()
c) int()
d) help()

a) input()
b) id()
c) int()
d) help()

a) input()
b) id()
c) int()
d) help()