# What is the type of inf

1.  Boolean

2.  Integer

3.  Float

4.  Complex

4

Float

Explanation :
No Explanation available for this question

# What does ~4 evaluate to

1.  -5

2.  -4

3.  -3

4.  +3

4

-5

Explanation :
No Explanation available for this question

# What does ------5 evaluate to

1.  +5

2.  -11

3.  +11

4.  -5

4

+5

Explanation :
No Explanation available for this question

# Which of the following is incorrect

1.  x = 0b101

2.  x = 0x4f5

3.  x = 19023

4.  x = 03964

4

x = 03964

Explanation :
No Explanation available for this question

# What is the result of cmp(3, 1)

1.  1

2.  0

3.  True

4.  False

4

1

Explanation :
No Explanation available for this question

# Which of the following is incorrect

1.  float(‘inf’)

2.  float(‘nan’)

3.  float(’56’+’78’)

4.  float(’12+34′)

4

float(’12+34′)

Explanation :
No Explanation available for this question

# What is the result of round(0.5) – round(-0.5)

1.  1.0

2.  2.0

3.  0.0

4.  Value depends on Python version

4

Value depends on Python version

Explanation :
No Explanation available for this question

# What does 3 ^ 4 evaluate to

1.  81

2.  12

3.  0.75

4.  7

4

7

Explanation :
No Explanation available for this question

# The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same.

1.  True

2.  False

2

True

Explanation :
No Explanation available for this question

1.  4

2.  7

3.  2

4.  0

4