12th CS 1 Prelims Exam 26 - 03 - 2021

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Chandrabhan Sharma Junior College of Science and Commerce,

Powai-Vihar Complex, Powai, Mumbai-400076

PRELIMINARY EXAM
th
Std.12 (SCIENCE) Subject-Computer Science-I Duration-3 hours
Date-26/03/2021 Marks-50
__________________________________________________________________________

Instructions: (1) All questions are compulsory.


(2) Figure to the right indicate full marks.
(3) Use of any type of calculator not allowed.
(4) Draw a neat diagram wherever necessary.

1. (A) Select correct option from the following and rewrite sentence:

(a) ___ is given to each process so that a process does not use the CPU
indefinitely. 1
(i) Context Switching (ii) Time Slice (iii) Token Time
(iv) Purchased Priority

(b) Out of the following C++ operators, ___ operator can be overloaded.
(i) Sizeof (ii) :: (iii) ?: (iv) *

(c) The time required for read_write head to move to the correct track is __.
(i) Latency Time (ii) Rotational Delay (iii) Seek time
(iv) None of these

(d) To place the image into an HTML file _____ attribute is used in IMG tag.
(i) <URL> (ii) <ALT> (iii) <SRC> (iv) <HREF>

1. (B) Answer any two of the following:

(a) Which are the three major areas in which the operating system divides its
services. Give examples.

(b) What is Constructor and Destructor? State difference between them.

(c) With a suitable example and neat diagram, show the representation of
linked lists in Memory.

2. (A) Answer any two of the following.


(a) Explain Virus Detection, Removal and Prevention.

(b) Describe how the Member Function of a Class can be defined Outside the
Class Definition and Inside the Class Definition?

(c) What do you understand by the term “Searching”? Which are the searching
algorithms? Explain the linear searching algorithm.
2. (B) Answer any one of the following:

(a) Explain Bubble Sort Algorithm with suitable example.

(b) Explain operator overloading with illustration. Write the advantages of


operator overloading.

3. (A) Answer any two of the following: [6]

(a) Explain the following HTML tags with suitable example : 3


(i) <MARQUEE> (ii) <SUB> (iii) <BODY>

(b) Write C++ declaration for the following: 3

(i) Array of 10 integers (ii) Pointer to character variable


(ii) Object of the class test

(c) Define “Security” with respect to an operating system. Explain the different
elements of security. 3

3. (B) Answer any one of the following: [4]

(a) What is an Operator Function? Describe the syntax of an operator


function. Explain the difference between operator function as a
member function and as a friend function. 4

(b) What is Virus? Explain any two infection methods of virus. 4

4. (A) Answer any two of the following: [6]

(a) Show the representation of records in Memory, considering suitable example of


three records and three fields. 3

(b) Define the following terms in C++ file handling: 3


(i) ifstream (ii) ofstream (iii) fstream

(c) What is Array? Write an algorithm for Traversing linear Array.


3
4. (B) Answer any one of the following: [4]

(a) Explain Paging and Segmentation. 4

(b) Explain the following terms in regard of virtual memory: 4


(i) Page fault (ii) Working Set (iii) Demand paging
(iv) Dirty page

5. (A) Solve any two of the following: [10]

(a) Write a C++ program that right justifies text. It should read and echo a 5
Sequence of left justified lines and print them in right justified format.

(b) Implement class GCD which have member function, which calculate greatest 5
common divisor of two number entered during program execution. Print() will
print GCD of two numbers.

(c) Write exact output of the following HTML code with font specifications 5
in brackets :

<html>
<body>
<h1> Term used in Networking </h1>
<hr>
<ul type = "circle">
<li> Bandwidth
<li> Attenuation
<li> Electromagnetic Interference
</ul>
<ol type = "a">
<li> Topology
<li> Ethernet
<li> Protocol
</ol>
</body>
</html>

OR

5. (B) Solve any two: [10]


(a) Write a C++ program to find the average of given four numbers, using the 5
following average() function that returns the average of four numbers float
average (float x1, float x2, float x3, float x4)
(Note: Float instead of double)

(b) Write a C++ program to sort 10 integer numbers in ascending order. 5

(c) Write HTML code for a web page displaying the following table: 5

You might also like