Cs Question Paper
Cs Question Paper
2 Data Structures 1 1 3 2 9 8 18
3 C+ Programming 1 1 4 12 2 8 4 20 41
4 HTMML 1 1 1 3 2 10 14
5 Total 4 4 12 3 6 L 6 24 6 30 94
Q.1(A) Select correct option from the following and rewrite the sentences:
Linux is type of software. 1
(a)
(i) Public ii) Free
(i) Shareware (iv) license
is collection of fields. 1
(b)
(i) File (ii) Record
(ii) Array (iv) Queue
operator cannot be overloaded. 1
(c)
i) ++ (ii) +
1
(d) tag is used to create a row in table.
(i) <td> i) <th>
(ii) <tr> (iv) <tt>
|Ans.: (a) (ii) (b) (ii) (c) (ffi) (d) (iii)
1B) Answer any
two ofthe following
three features of windows-98 Operating System.
Explain any (Ch. 1/Q.8/Pg.
(a)
(b) Explain Bubble sort algorithm with suitable examples. (Ch. 2/Q.19/ Pg. No. 2-13) No.1-4) 3
Explain general structure of HTML page. (Ch. 4/Q. 7/Pg. No. 4-3) 3
3
Answer any two of the following:
0.2(A)
Explain friend function in C++ with example. (Ch. 3/Q. 46/Pg. No. 3-35)
3
Evnlain linked representation of binary tree in memory with suitable example.
(b)
(Ch. 2/Q. 44/Pg. No. 2-32) 3
Explain memory map of single user operating system. (Ch. 1/Q. 43/Pg. No. 1-20)
(c) 3
(c)
(c) Write C++ declaration for thefollowing
Ans.: int a[10l;
1) Array of 10 integers.
Ans.: char" p;
(ii) Pointer to character variable
Ans.: test t;
(ii) Object of the class
.4(B) Answer any one of the following: linked list with
5 nodes 4
labelled diagram of
Draw and explain
a) Define linked list.
(Ch.2/Q.30/Pg. No. 2-21)
(b) What is
polymorphism? Explain how it is achieved Dy
i) Compile time (i) Run Time
(Ch. 3/Q.79/Pg. No. 3-70)
Q.5 Answer any two of the
following
(a) r i t e a C++ program to accept 10 integers in an array and find its sum and average.
(Ch.3/Q.114/Pg. No. 3-95) 5
(b) a t + function to find surface area of a sphere. (Ch. 3/Q. 124/Pg. No. 3-101)
1(A) Select correct option from the following and rewrite the sentences
by 3
Vhat is aa Computer Virus
? State any
Dro Compi
PrOgrams. (Ch. 1/Q. 69/Pg. No. 1-3b/
Q.2(B) Answer any one of the following:
the help of suitable example.
Explain each with
4(a)
Constructor and Destructor ?
what is
(a) Explain the memory representation of Binary Tree with suitable example.
(Ch. 2/Q.44/Pg. No. 2-32)
(b) Write a C++ program to accept a sentence (max. of 80 characters) and count tne
occurrence of a character "" in a given string (Ch. 3/Q. 132/Pg. No. 3-105) 5
the exact output«of the following HTML code
Write
Wr
<HTML>
<HEAD>>
BODY>
TR>
TH Rowspan
= "2"> IND <br>
335/4 </TH>
<TD> Virat </TD>
TD> 185 </TD>
</TR>
<TR>
<TD> Sharma </TD>
<TD> 90 </TD>
</TR>
<TR>
<TH Rowspan = "2"> AUS <br>
280</TD>
<TD> Warner </TD>
<ID> 90 </TD>
</TR>
<TR>
<TD> Smith </TD>»
<TD> 70 </TD>
</TR>
<TR>
TR> <TD Colspan =
"3"> IND win
by 055 Runs </TD»
</TR>
</Table>
</Body>
</HTML>
(Ch. 4/Q.
100/Pg. No. 7-73)
OR
Q.5 Answer any two of the following
(Greatest Common
(a) a Ct+ tunction to accept two integers and find its G.C.LD
e 5
Divisor). (Ch. 3/Q. 164/Pg. No. 3-124)
b) Write a class based C++ program to find the area of a spnere 5
(Ch. 3/Q. 171/Pg. No. 3-130)
5
(c) Write the HTML Code for following output:
(1) Computer Science Theory
(i) Paper 1 -50 Marks
(ii) Paper 2-50 Marks
(b) is very useful in situation when data is to be stored and retrieved in reverse
order. 1
Stack (i) Queue (ii) Linked List iv) Tree
c) What will be the value of x after execution of following expression in C++? 1
X = + + m + n + +; where m = 10 and n = 15.
) 25 i ) 27 (ii) 26 iv) 28
(d) is free software.
(i) UNDX ii) WINDOWS
(ii) LINUX (iv) DOS
Ans.: (a)- i), (b)-(G), ()-(i), (d)- (ii)
Q.1 (B) Answer any two ofthe following:
(a) List any six features of LINUX Operating System. (Ch. 1/Q. 10/Pg. No. 1-5) 3
(b) What is a pointer in C++ ? Give suitable example. (Ch. 3/Q. 29/Pg. No. 3-21) 3
(c)Write advantagesand disadvantages of HTML. (Ch. 4/0.3,4/Pg. No. 4-2) 3
Q. 2(A) Answer any two of the following
(a) Explain the syntax of C++ program structure with example.
(Ch. 3/Q. 16/Pg. No. 3-12)
(c) Write the difference between Worm and Virus. (Ch. 1/Q.73/Pg. No. 1-38) 3
manipulation. Operators are used in program to manipulate data and variables. C++
has a rich set of
operators. They are classified into following categories.
1 Arithmetic Operators 2. Relational Operators
3.
Logical Operators 4. Assignment Operators
5. Increment and Decrement Operators 6. Conditional Operators
7. Bitwise Operator 8. SpecialOperator ofC++
Arithmetic Operators
t t performs its numerical calculations by means of five arithmetic operators as
follows:
Operators Meaning
Addition or unary plus
Substraction or unary minus
Multiplication
Division
Modulo division
2) Relational Operatorss
one of them 1s greater
Kelational Operators compare values to see if they are equal or if
than other and so on.
| Operators Meanin8
Less than
Equal to
Notequal to
Logical OR
Logic NOT
Assignment Operator- Assignment Operators are used to assign the result of an
4)
C++ is equal sign(=). In
expression or constant to a variable. Assignment operator in
addition to this operator, C++ also includes following composite operator.
Operator Meaning
X += y means X=X +y |
X =
y means x
=X -y
*=
x y means x =x*y
x/ = y means x =x/y
x %= y means x =x %y
5) Increment and Decrement operators- C++ has two unary operators called increment
and decrement operators. These are very useful operators used for adding one and
substracting one from variable.
Operator Meaning
++ Increment Ex.b++ means b =b +1|
Decrement Ex b-- means b =b-1
Each of these operators has two versiOn -preversion and post version.
() Write HTML codefor the following output: (Ch. 40. 99/Pg. No. 4-72)
My Page IIIX
HTML is hypertext
One
Two
1. One
2. Two
March 2018
1 |Operating Systems 1 1 3 9 3 12 22
2 Data Structures 1 1 4 12 1 4 17
3 C+Programming 1 4 12 2 8 4 20 41
4 HTML 1 1 3 2 1014
5 Total 4 4 12 36 6 24 6 30 94
Q.1 (A) Select correct option from the following and rewrite sentence:
(a) If the page size for 2 MB memory is 2KB then the number of higher order bits on
address bus used to denote page number is . 1
i) 11 (i) 10 (ii) 9 (iv)8
(b) Data items are divided into sub item is called as 1
i) Group Item (i) Elementary Item (ii) Nodes (iv) Arrays
(c) Object isaare. 1
) Variable (ii) Data type
(ii) Run Time Entity iv) Both (i) and (ii)
(d) In HTML, for Red colour, RGB code is 1
(i) #00 00 00 i) # ff 00 00
(d)- (ii)
Q.1 (B) Answer any two of the following:
(a) What is File System ? Explain tape based and disk based file system.
(Ch.1/Q. 12/Pg. 1-6)
(b) What is VIDU ? Explain following terms of VDU: 3
(i) Dumb Terminal1 (ii) Intelligent Terminal (Ch. 1/Q.22/Pg. 1-10)
(c) What is Array ? Write an algorithm for Traversing linear Array.
(Ch.2/Q. 15/Pg. 2-10) 3
Answer any two of the following:
(A)
Define OP. Write its features. (Ch. 3/Q. 40/Pg. 3-29)
Explain <OL> and <UL> tag used in HTML with example. 3
Ch. 4/Q. 19 & Q. 20/ Pg. 4-11& 4-12)
nlain how
Expla
member functions of class can be defined outside
the class definition and
tnside class
inside class definition with example in C**. (Ch. 3/Q. 43/Pg. 3-32)
3
Answer any one of the following:
2 (B)
Write the use of tollowing file pointers with example.
4
seekg0 (i) seekp0 (ii) tellg0 (iv) tellp) (Ch. 3/Q. 93/Pg.3-81)
what is GUI ? explain the following components of GUI:
4
) Menu Bar (Ch. 1/Q. 58/ Pg.1-29)
) Title Bar (Ch. 1/Q. 60/Pg.1-30)
(aii) Scroll Bar (Ch. 1/Q. 58/Pg. 1-29)
3 (A) Answer any two of the following:
<Li> One
<Li> Two
<Li> Three
<UL type =
"square>
<Li> Monday
<Li> Tuesday
<Li> Wednesday
</UL>
</UL>
</body>
</html
(Ch. 4/Q. 92/ Pg. 4-68)