Data Analytics Using Python-I
Time: 1.5 Hours Maximum Marks: 40
Section A – Multiple Choice Questions (5 × 1 = 5 marks)
1. Which of the following is used to display output in Python?
a) input() b) print()
c) output() d) display()
2. Which of the following is a valid variable name in Python?
a) 2value b) value_2
c) value-2 d) @value
3. What is the output of: len("Python")?
a) 5 b) 6
c) 7 d) Error
4. Which data type is used to store decimal values?
a) int b) str
c) float d) bool
5. Which operator is used for exponentiation in Python?
a) ^ b) **
c) // d) %
Section B – Fill in the Blanks (5 × 1 = 5 marks)
1. The function used to take input from the user is __________.
2. Python is a __________ typed programming language.
3. The data type of True is __________.
4. The operator + is used for both addition and __________ in strings.
5. _________ are predefined words that have special meanings in Python and cannot be
used as variable names, function names, or identifiers.
Section C – Short Answer Questions (any 5) (5 × 2 = 10 marks)
1. What is a variable? Give one example.
2. Differentiate between int and float.
3. Write the output of:
x = 5
y = 2
print(x+7%y**2-y)
4. Write the output of:
print(10 > 5 and 3 < 2)
5. Write the output of:
s = "Computer"
print(s[:5])
6. Write the output of:
x = 5
y = 2
print(x // y)
print(x/y)
Section D – Answer the following questions (any 4) (4 × 5 = 20 marks)
1. Mention any five advantages of Python.
2. Write a Program to find the sum of three numbers.
3. Write a Program to find the area of a circle using math library.
4. Write a Program to check if a given number is even or odd.
5. Write a Program to check if a given string is palindrome or not.