0% found this document useful (0 votes)
70 views2 pages

Comp Sci em

This document contains a practice exam for Computer Science with 4 sections - I) Multiple choice questions with one mark each (15 questions), II) Short answer questions with two marks each (6 out of 8 questions), III) Short answer questions with three marks each (6 out of 8 questions), and IV) Long answer questions with five marks each (5 questions out of 7). The exam covers topics like Python programming, databases, SQL, and data visualization with Matplotlib.

Uploaded by

Malathi Raja
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views2 pages

Comp Sci em

This document contains a practice exam for Computer Science with 4 sections - I) Multiple choice questions with one mark each (15 questions), II) Short answer questions with two marks each (6 out of 8 questions), III) Short answer questions with three marks each (6 out of 8 questions), and IV) Long answer questions with five marks each (5 questions out of 7). The exam covers topics like Python programming, databases, SQL, and data visualization with Matplotlib.

Uploaded by

Malathi Raja
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

TIRUVALLUR DISTRICT

MODEL PUBLIC EXAM II - MAY 2021


(COMPUTER SCIENCE)

CLASS - 12 TIME - 3 Hrs MAX. MARKS - 70 MARKS

I. ANSWER ALL THE QUESTIONS (15 X 1 = 15)


1. ---- are the functions that retrieve information from the data type. a) Constructors b) Selectors c)
Recursive d) Nested
2. Which of the following is constructed by placing expressions within square brackets ? a) Tuples b) Lists
c) Classes d) Quadrats
3. ---- is the Python prompt indicates that Interpreter is ready to accept instruction. a) >>> b) <<< c) # d) <<
4. ---- is a logical operator. a) AND b) OR c) ++ d) (a) & (b)
5. Which statement is generally used as a placeholder ? a) continue b) break c) pass d) goto
6. Expand elif. a) nested if b) if else c) else if d) else
7. Which of the following function is used to count the number of elements in a list ? a) length() b) count()
c) len() d) index()
8. ---- is the main building block in Python. a) Object b) Class c) Instance d) Variable
9. Expand DBMS. a) Databasic Management System b) Database Management System c) Database
Management Symbol d) Database Managing System
>>>str=”COMPUTER”
>>>print(str[:4])
10. What is the output ? a) COM b) COMP c) UTER d) RETU
11. ---- command is used to change the table structure like adding a column, renaming the existing column.
a) Alter b) Modify c) Update d) Change
12. Expand CSV. a) Common Symbol Value b) Comma Separated Value c) Comma Special Value d) Common
Special Value
13. Which method is used to create an object that stores Dictionary data ? a) listreader() b) reader() c)
tuplereader() d) Dictreader()
14. SQLite falls under which database system ? a)Flat fle database system b)Relational Database system
c)Hierarchical database system d)Object oriented Database system
15. ---- is the programming language, used to process text, numbers, pictures and scientific data. a) HTML
b) C c) C++ d) Python

II. ANSWER ANY 6 QUESTIONS FROM THE FOLLOWING (6 X 2 = 12)


(24th question is Compulsory)
16. What do you mean by Scope of a Variable ?
17. List the types of Tokens.
18. What is a function ?
19. What is String Slicing ?
20. Correct the following program snippet to get the output.
Input: x=10, y=15
Output: The Sum = 25
X=integer(“input(Enter x value:”));
Y=integer((input(“Enter y value:”))
Print(“The Sum = “,”x+y”);
21. What are the components of DBMS ?
22. What is a CSV file ?
23. Give a note on select statement.
24. Write the output
i=10
while(i>=6):
print(i,end=’\t’)
i=i-1

III. ANSWER ANY 6 QUESTIONS FROM THE FOLLOWING (6 X 3 = 18)


(33rd question is Compulsory)
25. Write a note on Bubble sorting.
26. What is a loop and list its types ?
27. What is Lambda function and state its use.
28. Write a note on string slicing using stride ?
29. What are class members ? How do you defne it ?
30. Write a python program that displays 1 to 10 using while loop.
31. Write a note on Truncate command.
32. Write the Output.
>>> num=[ i**2 for I in range(1,11) ]
>>>print(num)
33. List the types of Visualizations in Matplotlib ?

IV. ANSWER ALL THE QUESTIONS (5 X 5 = 25)


34. Discuss about python operators. (or) Explain the types of If Structures in python.
35. Explain any 5 functions of List. (or) What is a Set and discuss the operation on Set ?
36. Explain the characteristics of DBMS. (or) Explain the Components of DBMS.
37. Explain the CSV file system in python. (or) Explain the features of Python.
38. Explain the various buttons in a matplotlib window. (or) Explain ORDER BY and GROUP BY clause in SQL.

----------------------- XXX -----------------------

You might also like