" /> -->

#### Term 1 Model Question Paper

12th Standard EM

Reg.No. :
•
•
•
•
•
•

Computer Science

Time : 02:00:00 Hrs
Total Marks : 60
10 x 1 = 10
1. Which of the following is a distinct syntactic block?

(a)

Subroutines

(b)

Function

(c)

Definition

(d)

Modules

2. Which of the following functions that build the abstract data type ?

(a)

Constructors

(b)

Destructors

(c)

recursive

(d)

Nested

3. Which scope refers to variables defined in current function?

(a)

Local Scope

(b)

Global scope

(c)

Module scope

(d)

Function Scope

4. The word comes from the name of a Persian mathematician Abu Ja’far Mohammed ibn-i Musa al Khowarizmi is called?

(a)

Flowchart

(b)

Flow

(c)

Algorithm

(d)

Syntax

5. This symbol is used to print more than one item on a single line.

(a)

Semicolon(;)

(b)

Dollor(\$)

(c)

comma(,)

(d)

Colon(:)

6. What is the output of the following snippet?
T=1
while T:
print(True)
break

(a)

False

(b)

True

(c)

0

(d)

no output

7. Which of the following is the slicing operator?

(a)

{ }

(b)

[ ]

(c)

< >

(d)

( )

8. The keys in Python, dictionary is specified by

(a)

"="

(b)

";"

(c)

"+"

(d)

":"

9. The process of creating an object is called as:

(a)

Constructor

(b)

Destructor

(c)

Initialize

(d)

Instantiation

10. The command to delete a table is

(a)

DROP

(b)

DELETE

(c)

DELETE ALL

(d)

ALTER TABLE

11. 5 x 1 = 5
12. 100

13. (1)

Symmetric difference

14. %E

15. (2)

Decimal Literal

16. \n

17. (3)

exponential notation

18. ^

19. (4)

line feed

20. -

21. (5)

Difference

6 x 2 = 12
22. Differentiate interface and implementation

23. What is a List? Give an example.

24. What is Sorting?

25. List the control structures in Python.

26. What is slicing?

27. What is data consistency?

28. 6 x 3 = 18
29. Differentiate pure and impure function.

30. Define Local scope with an example.

31. List the characteristics of an algorithm

32. Explain Ternary operator with examples.

33. How recursive function works?

34. What will be the output of the given python program?
str1 = "welcome"
str2 = "to school"
str3=str1[:2]+str2[len(str2)-2:]
print(str3)

35. 3 x 5 = 15
36. Explain with an example interface and implementation.

37. Explain the following built-in functions.
(a) id()
(b) chr()
(c) round()
(d) type()
(e) pow()

38. Differentiate DBMS and RDBMS.