" /> -->

#### Important 3 Mark Creative Questions (New Syllabus) 2020

12th Standard EM

Reg.No. :
•
•
•
•
•
•

Computer Science

Time : 01:00:00 Hrs
Total Marks : 69

Part A

23 x 3 = 69
1. Write an algorithm to check whether the entered number is even or odd.

2. Write a note on Data Abstraction

3. How will you ensure the principle of data encapsulation in object - oriented programming?

4. Write the different factors in which the time efficiency of an algorithm its measured

5. Write the steps to do dynamic programming.

6. 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) }{ \_ \_ \_ \_ \_ }$)

7. How will you define program blocks in python?

8. Draw a flowchart that illustrates the working of while loop.

9. Draw a flowchart that illustrate how looping construct gets executed.

10. When the variable - length arguments are used? Explain with an example.

11. Write a program to accept a string and print it in reverse order.

12. Write the output of the following statements.
strl = 'mammals'
(i) std. find ('ma')
(ii) std. find ('ma, 2)
(iii) std. find ('ma, 2, 4)
(iv) std. find ('ma, 2, 5)

13. Write the out put for the following statement.
strl = "Raja Raja Chozhan"
(i) print (std. count ('Raja'))
(ii) print (strl. count ('R'))
(iii) print (std. count ('A'))
(iv) print (std. count ('a'))
(v) print (std. count ('a, 0, 5))
(vi) print (std. count (,a, 11))

14. Read the following program and write the output according to the print statement mentioned
list = ['T', 'H', 'N', 'M'']
del list [1]
(i) print (list)
del list [1:3]
(ii) print (list)
del list
(iii) print (list)

15. Write the equivalent python statement for the following
(i) C=A | B
(ii) C=A & B
(iii) C = A - B
(iv) C=A ^ B

16. Write a python program to find total and average marks using class.

x, y= 10, 20
s= sample ()
print (s. x + s. y)
1. What does sample denotes?
2. What does x, y denotes?
3. What does s denotes?

18. List the components of DBMS

19. List the types of DBMS users.

20. Which constraint helps to set a limit value placed for a field?

21. What are the different ways of reading a CSV file using reader ( ) method?

22. Explain how a connect to be made to a database (Academy through python SQlite3.

23. Write a python code to display the following plot.