CS 1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Preliminary Examination2021–2022

Subject-Computer science –I
CLASS-XII
Time: 3:00 Hr Marks: 50 M
_________________________________________________________________________________
Q.1. A) Select the correct alternative and rewrite the following: 4M
1) _______ symbol is used to declare destructor function in C++.
a) @ b) # c) ~ d) !
2) ________ operator cannot be overloaded.
a) ++ b) + c) :: d) >>
3) _______ tag is used to write the definition list.
a) <UL> b) <DL> c) <OL> d) <DT>
4) ________ is collection of fields .
a) File b) Record c) Array d) Queue

Q.1. B) Answer any TWO of the following: 6M


1) Explain Bubble sort algorithm with suitable examples.

2) Explain general structure of HTML page.

3) Explain the purpose of the following functions with example:


i. Put()
ii. Get()
iii. Write()

Q.2.A) Answer any TWO of the following: 6M

1) Explain friend function in C++ with example.

2) How text is formatted by using <B>, <I> and <U> tags?

3) Explain memory map of single user operating system.

Q.2. B) Answer any ONE of the following: 4M

1) What is constructor and destructor? Explain each with the help of suitable example.

2) What is script? Explain VB script. Give one example.


Q.3. A) Answer any TWO of the following 6M

1) Explain internal and external fragmentation in memory management of operating


system.

2) Give the Advantages and Disadvantages of HTML.

3) Define following terms in C++ file handling.


i. Ifstream
ii. Ofstream
iii. Fstream

Q.3. B) Answer any ONE of the following: 4M


1) What is a Virtual Function? Write any six syntax rules of Virtual Function.
2) Explain the following tags in HTML.
i) <p> tag ii)<br> iii) tag<hr> tag iv) <pre> tag
Q.4. A) Answer any TWO of the following 6M
1) What is traversing an array? Give the algorithm for traversing a linear array.
2) Explain how a member function is defined outside class with examples.

3) Explain the use of following tags in HTML.


i) <Font> tag ii) <BIG> tag iii) HREF
Q.4 B) Answer any ONE of the following: 4M
1) Explain <OL> and <UL> tag used in HTML with example.
2) What is polymorphism? Explain how it is achieved by:
a) Compile time b) Run time

Q.5. Answer any TWO of the following: 10M

1) Write a C++ program to accept 10 integers in array and find its sum and average.

2) Write a C++ function to find surface area of a sphere. (Hint- Surface area of sphere =
A= )

3) Write a code in HTML for following table:

Subject Paper - I Paper - II


Computer Theory 50 50
Science Practical 50 50

OR
Q.5. Answer any TWO of the following: 10M

1) Write a C++ program to accept a sentence of characters and count number of words
in a sentence.

2) Write a class based C++ program to accept two integers and find its G.C.D. (Greatest
Common Factors).

3) Write text exact output of the following HTML code with font specification.

(Note: here code is given for which output is required along with link details as
mentioned)
<HTML>
<BODY
<TABLE border= "3" Cellspacing="10">
<TR>
<TH colspan = "3" > STREAM </TH>
</TR>
<TR>
<TD> <A href= "Science.html"> SCIENCE </A> </TD>
<TD> <A href= "Commerce.html"> COMMERCE </A> </TD>
<TD> <A href= "Arts.html"> ARTS </A> </TD>
</TR>
</TABLE>
</BODY></HTML>

You might also like