PRACTICE PYTHON
Which one of the following is a valid Python if statement?
a) if a >= 22 b) if a > 22 : c) if (a >= 2) d) if (a => 22) Answer b) if a > 22 :
Which of the following data types is not supported in Python?
a) String b) Numbers c) Slice d) List Answer: c) Slice
Which of the following is false regarding loops in Python?
a) for loop can be used to iterate through the elements of lists. b) Loops are used to perform certain tasks repeatedly. c) While loop is used when multiple statements are to executed repeatedly until
Which of the following statements is correct?
(i) Python is a high-level programming language. (ii) Python is an interpreted language. (iii) Python is a compiled language. (iv) Python program is compiled before it is interpreted. a) ii and iv b)ii and iii
Which of the following is not a core data type in Python programming?
a) Tuples b) List c) Class d) Dictionary Answer: c) Class Explanation: Class is a user-defined data type. Python’s Core Data Types include Numbers, Strings, Lists, Dictionaries, Tuples, and Files. Other types include Sets, types,

Aniket Malik
CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS
My students are the presents from God to me
Do you want to learn
Programming?
Hey, I’m Aniket. I’m determined to make you one of the best developers in the history of Information technology.
My only question is, are you ready?