#### 12th Standard English Medium Computer Science Reduced Syllabus Three Mark important Questions - 2021(Public Exam )

12th Standard

Reg.No. :
•
•
•
•
•
•

Computer Science

Time : 02:40:00 Hrs
Total Marks : 75

3 Marks

25 x 3 = 75
1. Mention the characteristics of Interface.

2.  What is the side effect of impure function. Give example.

3. Explain the syntax of function definitions

4. Identify Which of the following are List, Tuple and class ?
(a) arr [1, 2, 34]
(b) arr (1, 2, 34)
(c) student [rno, name, mark]
(d) day= (‘sun’, ‘mon’, ‘tue’, ‘wed’)
(e) x= [2, 5, 6.5, [5, 6], 8.2]
(f) employee [eno, ename, esal, eaddress]

5. Define Enclosed scope with an example

6. Write a note on module

7. Write a short note on types of variable scope.

8. Write short notes on Arithmetic operator with examples.

9. Explain Ternary operator with examples.

10. Fill up the blanks to get the following output from Python code given.
Output:
Enter Number 1 : 34
Enter Number 2 : 70
The Sum = 104
Code:
X = $\overset { (1) }{ \_ \_ \_ \_ \_ }$ (input ("Enter Number 1:"))
Y = $\overset { (2) }{ \_ \_ \_ \_ \_ }$ ($\overset { (3) }{ \_ \_ \_ \_ \_ }$ ("Enter Number 2 :"))
$\overset { (4) }{ \_ \_ \_ \_ \_ }$ ("The sum =", $\overset { (5) }{ \_ \_ \_ \_ \_ }$)

11. Write a note on statement which are ignored by the Python interpreter.

12. Fill in the blanks.
(i) _____ statements are ignored by Python interpreter.
(ii) The value of an operator used is called _______
(iii) 100/30 = ______

13. Write a python program to print all numbers from 10 to 15 using while loop.

14. What happens when we modify global variable inside the function?

15. What is composition in functions?

16. Write a note on "Required arguments".

17. What is the use of global keyword? Explain with an example?

18. Write a short about the followings with suitable example:
(a) capitalize( )
(b) swapcase( )

19. Write the description for the following escape sequence.
(i) \r
(ii) \000
(iii) \v

20. Write the output for the following statement.
(i) print ("PYTHON" . lower ())
(ii) print ("PYTHON" . islower ())
(iii) print ("PYTHON" . isupper ())
(iv) print ("PYTHON" . upper ())

21. What are class members? How do you define it?

22. Find the error in the following program to get the given output?
class Fruits:
def __init__(self, f1, f2):
self.f1=f1
self.f2=f2
def display(self):
print("Fruit 1 = %s, Fruit 2 = %s" %(self.f1, self.f2))
F = Fruits ('Apple', 'Mango')
del F.display
F.display()

23. What is the role of DBA?

24. Write a note on different types of DBMS users.

25. Draw the output for the following data visualization plot.
import matplotlib.pyplot as plt
plt.bar([1,3,5,7,9],[5,2,7,8,2], label="Example one")
plt.bar([2,4,6,8,10],[8,6,2,5,6], label="Example two", color='g')
plt.legend()
plt.xlabel('bar number')
plt.ylabel('bar height')
plt.title('Epic Graph\nAnother Line! Whoa')
plt.show()