Page 45 - ipp11
P. 45
Q20 and Q21 are Assertion(A) and Reasoning(R) based questions. Mark the correct choice as:
(a) Both A and R are true and R is the correct explanation for A.
(b) Both A and R are true but R is not the correct explanation for A.
(c) A is True but R is False.
(d) A is False but R is True.
20. Assertion (A): A tuple in Python is mutable. [1]
Reasoning (R): Tuple elements cannot be updated directly.
Ans. (d) A is False but R is True.
21. Assertion (A): Python is a case-sensitive language. [1]
Reasoning (R): Variables 'Name' and 'name' are treated as different identifiers.
Ans. (a) Both A and R are true and R is the correct explanation for A.
SECTION B (7 × 2 = 14 Marks)
22. (a) Distinguish between primary memory and secondary memory. [2]
Or
(b) Differentiate between Public Cloud and Private Cloud.
Ans. (a)
Primary Memory Secondary Memory
It is also called main memory. It is called external/auxiliary memory.
It consists of RAM and ROM. It is always non-volatile, i.e., permanent in
nature.
Primary memory devices are based on Secondary memory devices use magnetic and
semiconductor technology. optical memory technologies.
It is directly accessible by the CPU. Hence, It is not directly accessible by the CPU. Hence,
it is faster. it is slower than primary memory.
It is more expensive than secondary storage It is cheaper than primary memory.
devices.
Or
(b) Public Cloud is owned and operated by third-party cloud service providers which deliver their computing
resources like servers and storage over the internet.
Private Cloud refers to cloud computing resources used exclusively by a single business organization.
23. Describe the classification of software. Give one example of each. [2]
Ans. The software is classified into three types, which are as under:
(a) System Software: It refers to the programs that make the computer operational. For example, Operating
System—Windows.
(b) Application Software: It is developed to perform specific applications/tasks. For example, MS Word
(General-purpose application software), Library Management System (Customized application software).
(c) Utility Software: It helps to manage, maintain and control computer resources. For example, Antivirus
software—Avira, and Compression software—WinRAR.
24. Why NumPy arrays are used over lists? [2]
Ans. NumPy arrays are used over lists because of the following reasons:
(a) NumPy arrays have contiguous memory allocation. Thus, the same array stored as list will require more
space as compared to arrays.
(b) They are speedier to work with and hence more efficient as compared to lists.
(c) They are more convenient to deal with.
M.15