PRE HALF YEARLY EXAMINATION-2025
D
TIME :1.30 Hrs. COMPUTER SCIENCE MARKS : 50
I. CHOOSE THE CORRECT ANSWERS.
[Link] functions which will give exact result when same arguments are passed are called
(A) Impure functions (B) Partial Functions (C) Dynamic Functions (D) Pure functions
2. The data type whose representation is known are called
(A) Built in datatype (B) Derived datatype (C) Concrete datatype (D) Abstract datatype
3. Which of the following members of a class can be handled only from within the class?
(A) Public members (B)Protected members (C) Secured members (D) Private members
4. Two main measures for the efficiency of an algorithm are
(A) Processor and memory (B) Complexity and capacity (C) Time and space (D) Data and space
5. The Python prompt indicates that Interpreter is ready to accept instruction.
A) >>> B) <<< C) # D) <<
6. What plays a vital role in Python programming?
A) Statements B) Control C) Structure D) Indentation
7. Evaluate the following function and write the output
x=14.4
print([Link](x))
A) 13 B)14 C)15 D) 14.3
8. The subscript of a string may be:
(A) Positive (B) Negative (C) Both (a) and (b) (D) Either (a) or (b)
9. The keys in Python, dictionary is specified by
(A) = (B) ; (C) + (D) :
10. A table is known as
A) tuple (B) relation (C) attribute (D) entity
[Link] command to delete a table including the structure is
A). DROP B). DELETE C). DELETE ALL D). ALTER TABLE
12. The expansion of CRLF is
(A) Control Return and Line Feed (B) Carriage Return and Form Feed
(C) Control Router and Line Feed (D) Carriage Return and Line Feed
[Link] module which allows you to interface with the Windows operating system is
(A) OS module (B) sys module (C) csv module (D) getopt module
14. Which of the following is an organized collection of data?
(A) Database (B) DBMS (C) Information (D) Records
15. Which of the following feature is used to represent data and information graphically?
(A). Data List (B). Data Tuple (C). Classes and Objects (D). Data Visualization
PART B (ANSWER ANY 10) 10X2=20
16. What is a Pair? Give an example
17. What is an Algorithm?
18. Write short notes on Exponent data?
19. Write a program to check if a number is Positive, Negative or zero
20. What is base condition in recursive function
21. What is output for the following Python Command?str = “Thinking with Python”
(i) print(str[::3]) (ii) print(str[::—3])
22. Write the syntax of creating a Tuple with n number of elements.
23. List some examples of RDBMS
24. What is the difference between SQL and MySQL?
25. Mention the default modes of the File.
26. What is the advantage of declaring a column as “INTEGER PRIMARY KEY”
[Link] is Data Visualization?
PART C (ANSWER ANY 5) 5X3=15
28. Write a note on Asymptotic notation.
29. List the differences between break and continue statements
30. Write a short about the followings with suitable example: (a) capitalize( ) (b) swapcase( )
31. List out the set operations supported by python.
32. What is a constraint? Write short note on Primary key constraint
33. Differentiate PYTHON and C++
34. Write any three uses of data visualization.