Here’s your plain text practice set for:
MSc Data Science Entrance Prep
Topic: Core Python
Part 1: Multiple Choice Questions (MCQs)
1. What is the output of: print(2 ** 3)
a) 6 b) 8 c) 9 d) 5
2. Which of the following is not a valid Python data type?
a) list b) set c) tuple d) arraylist
3. What is the output of: len("hello")
a) 4 b) 5 c) 6 d) Error
4. What does the // operator do in Python?
a) Float division b) Modulus c) Integer division d) Power
5. Which keyword is used to define a function in Python?
a) fun b) define c) def d) function
6. What is the result of: bool([])
a) True b) False c) None d) Error
7. A dictionary in Python is:
a) Ordered list b) Unordered key-value pairs
c) List of tuples d) Sequential data
8. What is the output of: print(type({}))
a) <class 'dict'> b) <class 'set'> c) <class 'list'> d) <class 'tuple'>
9. Which function is used to take input from a user?
a) input() b) scan() c) get() d) enter()
10. What is the output of: "5" + "10"?
a) 15 b) 510 c) Error d) None
Part 2: True / False
1. Python is a compiled language. (False)
2. Tuples in Python are immutable. (True)
3. Lists can contain different types of elements. (True)
4. range(5) gives values from 1 to 5. (False)
5. Indentation is not important in Python. (False)
Part 3: Short Answer Questions
1. Write a function in Python to check if a number is even or odd.
2. Explain the difference between list, tuple, and set with examples.
3. What is the difference between is and == in Python?
4. How do you handle exceptions in Python? Write a sample try-except block.
5. Write a Python program to print the first 10 Fibonacci numbers.
Only one topic left: Matrices and Permutation & Combination. Would you like me to
send both together next?