I PUC Computer Science
I PUC Computer Science
PREPARED BY
MAHESH ARALI
2
PART - A
Answer all the questions. Each question
carries one mark. 20 X 1 = 20
6) Algorithm is a
a) Step-by-step process for a program
b) Step-by-step process for a flowchart
c) Step-by-step process for a solution
d) Step-by-step process for a coding
Answer : Step-by-step process for a solution
9
function main ( ).
17) The result will be displayed using cout ( ).
18) Break is a control statement.
19) To store many values in the same variable array is
used.
20) User defined function is known as Subprogram.
20
PART - B
PART - C
In Binary In Decimal
(110111) 2 (55) 10
32
31) Define
1)Assembler 2)Compiler 3)loader
Ans:
Assembler: Assembler is a translator, which translate from assembly level
language to low level language.
Compiler: Compiler is a translator, which translate from high level
language to low level language.
Loader: A loader is system software that loads machine code of a
program into the system memory and prepares these programs for
execution.
33
32) Explain sequence programming construct with an example.
Ans: Sequence construct:- Sequence is the simplest of all structures used
in programming. The program statements are executed one after
another, in a sequence.
Similarly, when we want to output more than one result then this can be done
using a single cout statement with multiple stream insertion operators. This is
called as cascading of input output operators.
Ex: 36
cout<<“Enter the value of A”;
cin>>A; Instead of using cin statement twice, we can use a
cout<<“Enter the value of B”; single cin statement and input the values for two
variables A and B using multiple stream
cin>>B;
extraction operator as shown below.
PART - D
Finally, the next two output statements display the computed area and
circumference respectively.
// Program to find the area and circumference of a circle
51
#include<iostream.h>
#define PI 3.142
void main ( )
{
int radius;
float circum, area;
cout<<“Input the value of radius”;
cin>>radius;
area = PI * radius * radius;
circum = 2 * PI * radius;
cout<<“Area of Circle is = ”<<area<<endl;
cout<<“Circumference of Circle is = ”<<circum<<endl;
}
41) Explain if-else statement with a suitable programming example. 52
Ans: This structure helps to decide whether a set of statements should be executed
or another set of statements should be executed. This statement is also called as
two - way branching. It executes some set of statements when the given condition
is TRUE and if the condition is FALSE then other set of statements to be
executed. The general form of if else statement is.
It tests the given condition at initial point It tests the given condition at the last of
of looping structure looping structure.
Minimum execution of loop is zero Minimum execution of loop is once.
Syntax: Syntax:
while ( Test condition ) do
{ {
statement 1; statement 1;
statement 2; statement 2;
…………….; statement n;
statement n; }
} while ( Test condition);
Semi colon is not used. Semi colon is used.
55
43) What is 2-dimensional array? Give the syntax and example for declaring 2-
dimensional array.
Ans: An array is a collection of elements having same name and same type
ordered in two-dimensional that is in the form of rows and columns is called as
two-dimensional array.
In the above program, the main( ) function reads the input data from the terminal and passes it on to
the called function. REVERSE. The function returns the reversed number to the calling program and
compared with the original num.
58
45) Mention various applications of spreadsheet.
Ans:
The ESS is the best tools for all the text and calculations involved
applications.
The accounting balance sheet generation for the auditing.
The area where the graphical presentation is required like statistical details
presentations.
In the schools and educational instructions for the presentations of the
graphs and charts.
Multiple accounting is involved in the file of budgeting for industry or
company or IT firms.
59
46) Explain any five built-in functions of ESS.
Ans: ESS built
Today( ): This function is used to returns system date.
Sqrt( ): This function is used to return the square root of the number.
Gcd ( ): This function is used to returns the greatest common divisor.
Concatenate ( ): This function is used to joins the several text values items into one
text item.
Len ( ): This function is used to returns the number of characters in a text string.
Average ( ): This function is used to returns the average value from the range of
cells.
47) What is HTML? Explain any four HTML tags. 60
Ans: HTML is stands for Hyper Text Markup Language it is used to design the web-page or web-site.
1. <b> : defines bold text. It makes the data to appear as thicker and darker.
Ex : <b> Model question paper </b>
Model question paper
2. <i> : defines italicized text. It makes the data to appear as italic style.
Ex : <i> Model question paper </i>
Model question paper
3. <u> : defines underlined word. It makes the data to be underlined.
Ex : <u> Model question paper </u>
Model question paper
4. <br> : defines a single line break. Not to separate paragraph <br> tag is useful for writing address.
Ex : PROM<br>EPROM<br>EEPROM
PROM
EPROM
EEPROM
61
Share The Knowledge
&