What is printed? python x = 20.5 print(type(x))
- <class 'str'
- 20.5
- <class 'float'
- <class 'int'
Answer
C) <class 'float'
20.5 is a decimal number, so its type is float. SLO CS-11-C-02
Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise