Hi,

If you need help with Python Programming – **INF1511** please contact us at info@wptech.co.za

**Questions**

**1. In computation, if operands of different types are involved, Python converts the operand with “smaller” type to the “larger” type. What is this called?**

1. auto conversion

2. coercion

3. explicit conversion

4. (1) and (2)

**The answer is 4 – (auto conversion and Coercion)**

**2. Which function is used to receive input from users?**

1 str()

2 type()

3 print()

4 input()

**The answer is 4 – input()**

**3. What is the correct print statement to output the value of x, y, and product?**

x=4

y=3

product = 4 * 3

**What is the correct print statement to output the value of x, y, and product?**

1. print(“The product of %d and

%d is %d” %x,%y,%product)

2. print(“The product of %d and

%d is %d” %(x,y,product))

3. print(“The product of %d and

%d is %d” %x,y,product)

4. print(“The product of %d and

%d is %d”, %(x,y,product))