0% found this document useful (0 votes)
38 views15 pages

Cs Question Paper

prives paper
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views15 pages

Cs Question Paper

prives paper
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

March 2020

Distribution of Marks- Questionwise and Topicwise


1 Mark 3 Mark 4 Mark Total5 Mark

Sr. Name of Topic


Question Question Question Question Marks
No. Nos.
Nos. Total Nos. Total Nos. Total Nos. Total
1 OperatingSystems 1 1 4 12 2 8 21

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) +

(ii) (iv) >>

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

0.2(B) Answerany following:


one the
Define Operating System, In which categories operating system provide its services.
(a)
(Ch.1/Q. 1 and Q. 2/Pg. No. 1-1 and 1-2)
What is constructor and destructor? Explain each with the help of suitable example.
(b
(Ch. 3/Q.51 and Q. 55/Pg. No. and 3-42) 3-39 4
Answer any two of the following:
Q.3(A)
Explain internal and external fragmentation in memory management of operating
(a) 3
system.(Ch. 20/Pg. No. 1-9)
1/Q.
(b) Listany six data structure operations. (Ch. 2/Q.3/ Pg. No. 2-2) 3

Define following terms in C++ file handling.


c)
() Ifstream i) Ofstreamn (ii) Fstream
and 3-78)
(Ch. 3/Q. 86 and Q. 87 /Pg. No. 3-77
Q.3(B) Answer any one of the following:
methods of virus.
(a) What is virus? Write any three infecting 4
(Ch. 1/Q. 69 and Q. 70/Pg. No. 1-36)
for following expression.
(b) Define Binary tree. Draw a Tree diagram 4
(Ch. 2/Q. 40 and Q. 63/Pg. No.
2-31 and 2-41)
Y= [(a-b-c) +
(a + b-c)]3/2
Q.4(A) Answer any two of the following:
of operating system.
to process management
(a) Explain timesharing related
(Ch. 1/Q.39/Pg. No. 1-18)
outside class with examples.
member function is defined
b) Explain how a

(Ch. 3/Q.43/Pg. No. 3-32)

(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)

(Hint: Surface area of sphere= A= 4tr)


(c)Write acode in HTML for following table 5
Subject Paper-I Paper- II
Computer Theory 50 50
Science Practical 50 50
HSC Exam Scheme (Ch. 4/Q.102/Pg. No. 4-74)
Q.5 Answer any two of the
following:
(a) Write a C++ program to
accept a sentence of 80 characters and count number of words
in a sentence. (Ch.
3/Q. 39/Pg. No. 3-28) 5
(b) Writeclass based C++
a
program to accept two
Common Factor) (Ch. 3/Q. integers and find its G.C.D. (Greatest
45/Pg.
No. 3-34) OR (Q. 164/Pg. No. 3-124) 5
(c) Write the exact output of the
following HTML code with font specification.
(Ch. 4/Q.
69/Pg. No. 4-51)
5
(Note here code is given for which
output is required along with link
mentioned) details as
<HTML>
<BODY
<TABLE border= "3"
<TR>
Cellspacing="10">
<TH colspan "3"
=
>
STREAM</TH>
</TR>
<TR>
<TD> <A href= "Science.html" >
<TD> <A href-
SCIENCE</A> </TD>
"Commerce.html" > COMMERCE </ A>
<TD> <A href= "Arts.html" > ARTS </A> </TD
</TR
</TD>
</TABLE>
</BODY></HTML
JulyJuly 2019
nistribution of Marks -Questionwiseand Topicwise
1 Mark 3 Mark 4Mark 5 Mark Total
Name of Topic Question Question Question
| Nos. Total Nos. Total Question Marks
1NOOperatingSystems
Nos.Total Nos. Total
11 412 2 8
2 DataStruetures 11 3 9 2 8 21
18
3C++ Programming 1 1 12 2 84 20
41
4HTML 1 113 |2 10 14
44 1 2 36 6 246 30
5 Total 94

1(A) Select correct option from the following and rewrite the sentences

operator can be overloaded. 1


() (Plus) (ii) I. (Logical OR)
(1) % (Modulus) (iv) All i, ii and ii
b) Record contains data. 1

() Homogenous (ii) Non-homogenous


(ii) Same (iv) None of these
available in_ 1
Terminate a process is the system call management.
Information (iv) File
) Process (i) Memory (ii) 1
d)Border attributeis used in. tag
(ii) <TABLE> iv) <TITLE>
<HTML> (i) <P>

(b) i) (c) (i) (d) (ii)


Ans.: (a) iv)
1(B) Answer any two of the following:
3
B) Explain the following HTML tags with one example ofeach:
) <MARQUEE> (Ch. 4/Q.15(a)/Pg. No.4-8)
(i)SUB> (Ch. 4/Q. 21(2)/Pg. No. 4-13)
and 4-5)
(i) <BODY> (Ch. 4/Q. 8iv)/Pg. No. 4-4 No. 2-2)
EXplain any three data structure operations. (Ch. 2/Q. 3/Pg.
system.
c) in process management of operating
Xplain three states of process
(Ch. 1/Q. 29/Pg. No. 1-13)
.20A) Answer any two of the following: bound is 45, then
compute
is 26 and upper 3
la) Vhat is a Linear ? lf lower bound
Array 3
No. 2-9) NO. 3-30)
ength of Array. (Ch. 2/Q. 12/Pg.
No.
42/Pg.
42/Pg.
ion. (Ch. 3/0.
declaration.
3/Q.
other
of class intect otr
form
k
What is Class
Class? Explain
? general
four
which virus
methods
can

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

(Ch. 3/Q. 51 and Q. 55/Pg. No. 3-39 and 3-42)


4
three terms used in Virtual
(b What do you mean by Virtual Memory ? Explain any

Memory. (Ch. 1/Q. 53/Pg. No. 1-26)


Q.3(A) Answer any two the following:
Friend function. (Ch. 3/Q. 46/Pg. No. 3-35) 3
(a) Write any three characteristics of With diagram.
used in data structure
(b) EXplan Conditional Flow and Repeatative Flow 3
2-7)
(Ch. 2/Q.7 and 8 OR Q.10/Pg. No. 2-5, 2-6 and
3
(Ch. 1/Q. 58/Pg. No. 1-29)
(c) Explain any three components of GUI.
Q.3(B) Answer any one of the following:
rules of Virtual Function.
(a) What is Virtual Function ? Write any six syntax
a
4
(Ch. 3/Q. 80 and Q. 82/Pg. No. 3-71 and 3-72)
4
(b) What is Data Structure ? Define the following terms of data structure
) Record (Ch. 2/0. 1(vi/Pg. No. 2-2)
(i) File (Ch. 2/Q.1(viil/Pg. No. 2-2)
(ii) Field (Ch. 2/Q. 1(v)/Pg. No. 2-1)
Q.4(A) Answer any two of the following:
Write the size in bytes of following data types: 3
(a)
(i) Double (ii) Short int.
) Float
(iv) Unsigned int. (v) Long double (vi) Char
(Ch. 3/Q. 6in/Pg. No. 3-4)
(b) Explain any three types of inheritance. (Ch. 3/Q.70/Pg. No. 3-56)
(c) What is Operating System? List any four operating systemnames.
(Ch. 1/Q.1/Pg. No. 1-1)D
Q.4(B) Answer any one of the following:

(a) Explain the memory representation of Binary Tree with suitable example.
(Ch. 2/Q.44/Pg. No. 2-32)

(b) Define following terms of process scheduling in operating system:


) Through put (ii) Turn around time
ii) Waiting time (iv) Response time
(Ch. 1/Q.30 & Q.31/Pg. No. 1-14)
Q.5 Answer any two of the following:
(a) Write a C++ program to accept 100 natural numbers. Find and print its sum and
5
average. (Ch. 3/Q. 114/Pg. No. 3-95)
(Note: Write i <= 100 in all for loops and avg = sum/100)

(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>>

TITLE> Match summary </TITLE


</HEAD>

BODY>

Table border = "1" cellspacing = "15" cellpadding = "15">

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

(2) Computer Science Practicals


Paper 1-50 Marks
No. 4-174)
(ii) Paper 2-50 Marks (Ch. 4/Q. 101/Pg.
March 2019

Distribution of Marks-Questionwise and Topicwise


1 Mark 3 Mark 4 Mark 5 Mark Total
Sr.
Name of Topic Question Question QuestionQuestion Marks
No. Nos. Total | Nos. Total Nos. Total Nos. Total
1 jOperating Systems 11 2 2 8 21
2 Data Structures
1 3 9
2 8 18
3 C++ Programming 1 4 2 20 41
4 HTML 3 2 10 14
5 Total 4 4 12 36 6 246 30 94
Q.1 (A) Select correct option from the following and rewrite sentence:
(a) Bulleted list in HTML is created by tag.
(i)<UL> (i) <OL> (ii) <B> (iv) <BR>

(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)

(b) Explain Binary Search algorithm with a suitable example.


(Ch. 2/Q. 23/Pg. No. 2-17)

(c) Write the difference between Worm and Virus. (Ch. 1/Q.73/Pg. No. 1-38) 3

Q.2 (B) Answer any one ofthe following:


(a) Explain operator overloading with suitable example. Write any two characteristics of
operator overloading. (Ch. 3/Q. 61, 62, 63/Pg. No. 3-48) 4
What is inary Iree Draw the Tree
diagram for the
expression.
(3R/5T-(R +Q)(Ch.2/0.40 andQ. 62/Pg. No. 2-31 and
B-

(A)A) Answer any two of the following: 2-41) 4


tor
in C++ ? State
What is a constructor
any four special characteristics
function. (Ch. 3/0.51 &Q. 52/Pg. No. 3-39) of constructor
Exp the function of the following in Operating System: 3
(9 Virus Detection (i) Virus Removal 3

ii Virus Preventation (Ch. 1/Q.72/Pg. No. 1-37)


Write two features of each of data structure:
3
Record (Ch. 2/Q. 26/Pg. No. 2-19)
() Array (Ch. 20.12/Pg. No. 2-9)
ii) Linked List (Ch. 2/Q. 46(b/Pg. No. 2-35)
.3 (B) Answer any one of the following:
Explain any two types of type conversion in C++ with example.
(Ch.3/Q.66/Pg. No. 3-51)
4
What are the functions of
Memory management? State any two
Real Memory types of continuous
Management System. (Ch. 1/Q. 42Pg. No. 1-20) 4
4 (A) Answer any two of the following:
Explain any six operators used in C++.
3
ns, An operator is symbol that tells the computer to perform mathematical and logical
a

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.

Following operators are used to perform relation between two variables:

| Operators Meanin8
Less than

Less than or equal to


Greater than
Greater than or equal to

Equal to
Notequal to

used to perform logical operation such as


3) Logical Operators :-The operators which are

called logical operators.


logical AND, logical OR and logical NOT are
These are as follows-
Operator Meaningg
&& Logical AND

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.

Example of pre version is


ifx 50 and y = ++ x then y value will be 51
version is
Example of post
++ then y 50 and will be 51
f x= 50 and y x x
= =

ditional Operators rs C++ includes very special operator called the


ternary or
conditional
cond
operator. It is called ternary because it uses three expressions. Its general
format is
expression 1 ? expression 2: expression3
Ex-X=y>5 ? 50:80

t means x is assigned the value 50 if y is greater than 5, otherwise x is assigned 80.


Bitwise Operators These are certain situations where in bitwise operations are to be
nerformed. These permits the programmer to access and to manipulate individual bits.
Bitwise operators can be used with char and int data types.
Operator Meaning
Bitwise One's complement
& Bitwise AND
Bitwise OR
A Bitwise x OR
Bitwise right shift
Betwise left shift

8) Special operators of C++:


New operators in C++ are
Scope resolution operator
Pointer to member declarator
pointer to member operator -2

pointer to member operator


memory release operator delete
line feed operator endl
memory allocation operator new

Field width operator setw


b) 3
Write a short note on Paging. (Ch. 1/0. 49/Pg. No. 1-23)
Explain Pointer Array with example. (Ch. 2/Q. 25/Pg. No. 2-18)
4(B) Answer any one of the following:
a)
With reference to process management, explain the termsS:
) External Priority (ii) Purchase Priority
(1) Internal Priority (iv) Time Slice
Ch. 1/Q.35/Pg. No. 1-16)
6) Explain memory representation of linked list with example.
(Ch. 2/Q.
32/Pg. No. 2-23)
Q.5 Solve any two of the following
(a) Write a C* program to accept a sentence (maximum 50 characters) and print sentence
in reverse. (Ch. 3/Q. 5
168/Pg. No. 3-128)
Write a function in C++ to acceept four integers. Find the smallest integer and print it.
(Ch. 3/Q.115/Pg. No. 3-96) 5
() Write exact output ofthe following HTML code: (Ch. 4/Q. 98/Pg. No. 4-71)
<HTML>
<BODY>
<OL start = "10">
<li> English
<li> Second language
</OL>
<OL Type = "a">
<li> Compulsory
<li> Optional
</OL>
<UL type =
"Square">
<Li> Science
<Li> Arts
<Li> Commerce
</UL>
</BODY>
</HTML>
OR
Q.5 Solve any two ofthe following:
(a) Write a C++ program to find smallest in an array of 10 floats using pointer.
(Ch. 3/Q.169/Pg. No. 3-129) 5
(b) Write a class based program in C++ to find area of a Triangle.
(Ch. 3/Q.170/Pg. No. 3-129) 5

() Write HTML codefor the following output: (Ch. 40. 99/Pg. No. 4-72)
My Page IIIX
HTML is hypertext

Markup language. The basic language of HTML is ASCl code.

This is only text oriented language.

One
Two
1. One
2. Two
March 2018

Distribution of Marks- Questionwise and Topicwise


1 Mark 3 Mark 4 Mark 5 Mark Total
Sr. Question Question Question Question Marks
Name of Topic
Total Nos. Total
No. Nos. Total Nos. Total Nos.

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

(ii) # 00 ff 00 (iv) #00 00 ff


Ans.: (a)- (ii), (b)-i), c) (ii),-

(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:

Explain the following process states


) Running State (ii) Ready State
(i) Blocked State (Ch. 1/Q.29 /Pg. 1-13)
Explain Constructor and Destructor with example in C+
Ch. 3/Q. 51 & Q. 55/ Pg. 3-39 & 3-42) 3
What is Data structure ? Explain Linear Data Structure and Non-linear Data Structure.
(Ch. 2/Q. 2/Pg. 2-2)
3 (B) Answer any one of the following:
Write any eight basic rules for virtual function that satisfies the compiler requirements.
(Ch.3/Q.82/ Pg. 3-72)
) Define Security. Explain the different elements of security. (Ch. 1/Q.65/ Pg. 1-33)
4 (A) Answer any two of the following
Differentiate between Traditional procedural Programming Appr0ach and Object
Oriented programming Approach. (Ch. 3/Q.2/ Pg. 3-2)
Definefollowing terms:
) Group Item (i) Elementary Item
i) Entity (Ch. 2/ .1/Pg. 2-1)
What is Binary Tree ? With suitable example show the relationship between Total
Number Nodes and Depth of Binary Tree. (Ch. 2/Q. 42/ Pg. 2-32)
Answer any one of the following:
at is Record ? Explain how records are represented in memory using array
bbi Ch. 2/Q.26 &Q. 28/Pg. 2-19 &2-21)
Explain following terms in case of Process Scheduling:
() Turn-around Time (ii) Waiting Time
i) Terminal (iv) Event Response Time (Ch. 1/Q.31/ Pg. 1-14)
Response Time
Q.5 Solve any two of the
(a) WTite a C*
following:
program to accept an integer number and test whether it is
prime or not.
(Ch. 3/Q. 106/Pg. 3-91) 5
(b) Write a
program in C using OOP technique to compute circumference of circle.
(Ch.3/Q. 148/ Pg. 3-115)
(c) Write HTML code for
following output : (Ch. 4 /Q.91/ Pg 4-67)
Cricket Analysis
Country Played Won Lose
INDIA 30 27 03
PAKISTAN 30 03 27
OR
Q.5 Solve any two:
(a) Write aC" program to find the smallest of four
given integers using function
min() that returns the smallest of four given integers. The function
below int min (int, int, int, int). (Ch. 3/ Q. prototype is as
115/Pg. 3-96)
(b) Write an object oriented
program in CH to read an integer number and find the sum of
digits of integer [Hint : input 125 output 8 i.e. 1 +2+5 81]
(Ch.3/Q. 167/ Pg. 3-125)
(c) Write the output of the following HTML code:
<htmi>.
<body>
UL type = "circle">

<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)

You might also like