March 2015 (Answer Key)
[Link] the character represention coding scheme developed in India and
approved by the Bureau of Indian Standards(BIS).
Ans:ISCII(Indian Standard Code for Information Interchange)
2. a)Differentiate between a compiler and a interpreter
BL
b)C++ uses the .......... language processor for translation.
EO
Ans: a)Both the compiler and interpreter converts highlevel language program(source program)
into machine code(object code).The compiler converts the entire program into object
code,where as the interpreter converts each line at a time .
VI
b)Compiler
-V
I
SI
O
N
[Link] writing a C++ program, a student forgot to put a semicolon at the
end of a declaration [Link] type of error can he expect during
compilation ?
BI
O
Ans: Syntax error (incorrect use of programming statement)
[Link] the name of the following operators in C++.
&&,||,!
Ans: && AND
|| OR
! NOT
[Link] the smallest number in the list.
a)(1101)2 b)(A)16
c)(13)8
d) (15)10
ans: (A)10
[Link] is the difference between = and = = operators ?
Ans:The = operator assigns a value to a variable whereas the operator = = checks
for equality ie ,if both the values are equal or [Link] example
a=10 ; assigns 10 to the variable a
a==10 ; Checks if the value of a is equal to 10 or not.
OR
What is the output of the following C++ statements ?
X=-7, y=3
BL
a)add x with y
EO
b)x modulus y
ans: a) 3
O
N
VI
b)1 (7 %3,ie Remainder =0)
SI
[Link] the rules for naming identifiers.
-V
I
Ans:The rules for naming identifiers in C++ are
BI
O
[Link] name cannot start with a [Link] can start with underscore(_).
[Link] cannot be used as identifier.
[Link] spaces and special symbols are not allowed,except underscore(_).
[Link] case and lower case letters are treated differently ie, case sensitive
[Link] header file is responsible for cout and cin objects ?
Ans:The header file responsible for cin and cout objects is iostream.h.
9.............. is a software for removing worms and trojans.
Ans:Antivirus
[Link] are the guidelines one must follow using computer over the
internet ?
Ans:The following guidelines must be followed while using the internet.
1)Do not open email attachment send by unknown persons.
2)Download files only from reputed sites.
3)Dont click on pop-up ads.
4)Turn On the firewall.
5)Use a strong password.
6)Backup the files regularly.
BL
7)Use an updated antivirus program.
EO
8)Dont disclose your personal information.
9)Dont reveal your ATM PIN,passsword etc to others.
VI
10)Change password frequently.
-V
I
Ans:Constants or Literals
SI
O
N
11............ are tokens that never change their value while execution takes
place.
Ans:Exit
BI
O
[Link] ............ while loop is a ............. controlled loop.
[Link] introduced the term , WWW ?
Ans:Tin Berners Lee
14. Represent -83 in 1s complement form.
Ans: Binary of 83 1010011
Converting to 8 bit
01010011
1s Complement
10101100
[Link] a C++ program to find the total and percentage of a student in
six subjects
Ans
#include<iostream.h>
#include<conio.h>
Void main()
{
int m1,m2,m3,m4,m5,m6,total;
float per;
cout<<Enter the mark for six subjects;
BL
cin>>m1>>m2>>m3>>m4>>m5>>m6;
EO
total=m1+m2+m3+m4+m5+m6;
per=(total/6)*100;
O
N
VI
cout<<Percentage=<<per;
-V
I
SI
[Link] the name given to the physical arrangement of computers in a
network .Explain two types with block diagram.
BI
O
Ans:The physical arrangement of computers in a network is called [Link] two types of
topology are Bus and Star topologies.
Bus topology
In bus topology all the nodes are connected to main cable (bus).The signals (data)
travels through the [Link] attached at the end of bus is used to absorb
reflecting signals.
Characteristics of bus topology
Easy to install.
Less cable is needed.
Difficult to troubleshoot.
Failure of main cable effects the network.
Performance decreases in heavy traffic.
BL
EO
Star topology
In star topology each nodes are connected to a central hub/switch.
VI
All the data passes through the hub.A star topology uses more cable than bus
O
N
topology.
SI
Characteristics of Star topology
Failure of hub shut downs the network.
It requires more cable than bus topology.
It is expensive.
Difficult to expand.
Centralized control.
BI
O
-V
I
[Link] the following program,some lines are missing .Fill the missing lines
and complete it.
#include<iostream.h>
.................................
{
Int num1,num2,sum;
cout<<Enter two numbers :;
...................
BL
.....................
EO
cout<<Sum of numbers
are=<<sum;
VI
O
N
Ans:
BI
O
-V
I
Void main()
SI
#include<iostream.h>
Int num1,num2,sum;
cout<<Enter two numbers :;
cin>>num1>>num2;
sum=num1+num2;
cout<<Sum of numbers;
cout<<sum;
}
18. a)Expand the term ,ICT.
implementing e-Governance.
b)Briefly explain the advantages of
Ans: a)ICT stands for Information and Communication Technology.
b) E-Governance refers to the use of Information and Computer Technology (ICT) in
delivering government [Link] aim of e-governance is to make government services
available to citizens in a transparent and efficient manner.
Beneficts of E-Governance
E-Governance facilitates better delivery of government services to
BL
Following are the advantages of E-Governance,
EO
citizens.
Automation of government services.
Increases transparency.
Strengthens democracy.
Improves performance of government departments.
Saves time and money.
-V
I
SI
O
N
VI
OR
BI
O
[Link] a flowchart to print the first 100 natural numbers.
What are the characteristics of an algorithm ?
Ans:
BL
OR
It should begin with instruction(s) to accept inputs.
EO
Characteristics of an algorithm
O
N
The number of instructions must be finite.
VI
Each instruction must be precise and should have only one meaning.
SI
An algorithm must produce desired output.
BI
O
Ans: Data type
-V
I
[Link] are data types ?Explain the fundamental data types in C++.
Data type specifies the type of data and the permitted operations allowed on the data.
Fundamental data types
The fundamental data types are basic data [Link] are often called primitive or built in data
[Link] five fundamental data types are,
Int data type
The int data type is used to store integer [Link] occupies 2 bytes of memory.
Char data type
The char data type is used for storing [Link] occupies 1 bytes of memory.
BL
Float data type
The float data type is used for storing fractional [Link] takes 4 bytes in memory.
EO
Double data type
VI
The double data type is used for storing double precision floating point [Link] takes 4 bytes
of memory.
O
N
Void data type
SI
The void data type specifies an empty set of [Link] is used as the return type of functions that
BI
O
-V
I
does not return [Link] cannot be declared as void type.
[Link] explain the phases in programming .
Ans: The different stages in programming are,
[Link] identification
[Link] algorithms and flowcharts.
[Link]
[Link]
[Link]
[Link] and testing
[Link]
Problem solving
In this phase the problem is [Link] data involved in
processing,the output to be obtainrd are identified.
Algorithms and Flowcharts
Once the problem is identified, a step-by-step procedure is developed
BL
to solve the problem.
EO
Algorithm
VI
An algorithm is a finite sequence of instructions to solve a problem.
O
N
Flowchart
SI
A flowchart is a pictorial representation of an [Link] is mainly used to understand an
BI
O
Coding
-V
I
algorithm.
The set of instructions expressed in any programming language is called
a computer [Link] process of writing a program is called coding.
Translation
The process of converting a program written in high level language into machine language is
called translation .The program written in a high level language is called source code and the
converted code is called object code.
Debugging
The process of correcting and detecting error is called [Link] are two types of
error,Syntax error and Logical error.
BL
Execution and testing
EO
The purpose of testing is to find if the result are [Link] program will be executed and the
VI
result will be compared .
O
N
Documentation
SI
This is the last step in [Link] comments in source code is called internal
BI
O
-V
I
[Link] helps in program modification later.
[Link] any two advantages of Networks.
Ans: The advantages of computer network are,
Sharing of resources :A network allows to share resources such as
printer,scanner,hard disk etc.
Better Price-Performance ratio :A network enables to share resources,thus a network has
better price performance than a stand alone computer.
[Link] do the type modifier affect the size and range of int and char data
type ?
Ans: The keywords signed,unsigned,short and long are type modifiers.A type modifier changes
the meaning of the base data type to produce a new data type. The type modifier
signed,unsigned is applicable on char and int data [Link] type modifier long is applicable on
char ,int and double data types.
[Link] are the advantages of Wi-Fi network ?
BL
Ans: Wi-Fi enables to access internet wirelessly among a number of [Link] example in Schools
and [Link] a place where internet can be used wirelessly is called hotspot
EO
[Link] a C++ program to check whether the given number is prime or
not
VI
OR
SI
Ans: #include<iostream.h>
O
N
Explain the various iteration statements in C++ with syntax and examples.
-V
I
#include<conio.h>
BI
O
void main()
{
clrscr();
int num;
int i=2;
cout<<Enter a Number";
cin>>num;
while(i<=num-1)
{
if(num%i==0)
{
cout <<" Number is not a prime number";
}
i++;
}
if(i==num)
{
cout <<"Number is prime number";
}
}
OR
Ans: Increment and Decrement Operators
In C++ there are two perators increment(++) and decrement (--).The increment operator
increases the value by one and the decrement operator decreases the value by one.
Prefix increment and decrement operator.
BL
Postfix increment and decrement operator.
EO
Prefix increment and decrement operator
O
N
VI
The Prefix increment operator increases the value by one,whereas the pefix decrement operator
decreases the value by [Link] incremented or decremented value is used for other
[Link] this method is called change,then use method.
SI
For example a=++b here the value of b is incremented by one and assigned to a.
-V
I
Postfix increment and decrement operator.
BI
O
The Prefix increment operator also increases the value by one,
whereas the pefix decrement operator decreases the value by [Link] the postfix notation the
increment is done after the value is assigned. So this method is called use,then change method.
For example a=b++ here the value of b is assigned to a then the value of b is incremented by
one.
[Link] are the types of memories used in computers ?
Ans:
Memory
Memory is used to store data and instructions. Memory can be
classified into two: primary memory and secondary memory. Primary
memory holds data and results temporarily. Secondary memory on the
other hand holds data and information [Link] memory is
volatile where as secondary memory is non-volatile.
Primary memory
There are two types of Primary memory Random Access Memory(RAM) and Read
Only Memory(ROM).RAM is volatile and is used to temporarily store data and
[Link] is non-volatile and is used to store start-up or bootstrap programs
BL
(Firmware).Primary memory is semiconductor [Link] provides a
VI
The speed of RAM is measured in MegaHertz(Mz).
EO
limited storage capacity due to its high cost.
O
N
Secondary memory
SI
It is also known as auxiliary [Link] is used to store large volumes of programs
-V
I
and [Link] disk,Hard disk,Magnetic tape and Optic disks are commonly used
BI
O
Secondary [Link] memory has a high storage capacity than Primary
memory .Secondary memory is cheaper than Primary memory.
Cache memory
Cache memory is a high speed memory placed between main memory
and cpu to increase the speed of [Link] used data and
programs are placed in the cache [Link] memory is more
expensive and faster than [Link] memory is of three types ,L1
cache(found inside the CPU),L2 and L3 cache(found in motherboard).
Secondary memory
It is also known as auxiliary [Link] is used to store large volumes of programs
and [Link] disk,Hard disk,Magnetic tape and Optic disks are commonly used
Secondary [Link] memory has a high storage capacity than Primary
BL
memory.
EO
Magnetic Storage Device
Magnetic storage devices use plastic tape or disks coated with
VI
magnetic materials. Data is recorded magnetically. Read/write heads are
O
N
used to access data from these devices. Some of the popular magnetic
SI
storage devices are magnetic tapes, floppy disks, hard disks, etc.
-V
I
Magnetic tape
BI
O
Magnetic tape is a thin plastic strip coated with magnetic [Link] is
used as a backup device for storing large volume of [Link] is a sequential
storage [Link] is stored in frames.
Advantages of magnetic tape:
1)It is cheap compared to other storage devices.
2)It can store large amount of data.
3)Can be used as backup device.
Dis advantages of magnetic tape:
1)Slower due to serial access.
2)Need special device for recording and reading data.
3)Data may be corrupted if placed near strong magnetic field eg; Speaker or Magnet.
Hard disk
A hard disk consists of a metallic disk coated with a magnetic
material,which is placed inside a [Link] has high storage capacity
and is [Link] is used as secondary storage in a [Link] consists of
one or more platters ,having read/write head.
BL
Optical storage devices
EO
Optical disk uses laser for reading and writing [Link] is written in the
form of pits and land( 0 and 1).Some of the commonly used optical disk
O
N
VI
are CD,DVD etc.
SI
Compact disk (CD)
-V
I
A Compact Disk is an optical disk capable of storing data using laser.
BI
O
It is available in two forms CD-R (Recordable)and CD-RW(Rewritable).
CD-R can be written once,where as CD-RW can be Written and erased
many times.
Digital Versatile Disk(DVD)
A DVD is an optic disk with high storage capacity than a CD. Its capacity
varies from 4.37 GB to 15.9 GB
Blue ray DVD
Blue ray is an optic disk which can store huge volumes of data than a CD.
Blue violet laser has shorter wave length and offer more precision in
[Link] capacity ranges from 25 Gb to 50 Gb.
Flash Memory
Flash Memory is an electronic non-volatile storage medium which can be
electrically erased and re-programmed(EEPROM).It is usedin mobile
phones,digital camera [Link] in PC is usually stored in flashmemory.
USB Flash drive
BL
Flash drive is a small storage device,consisting of flash [Link] is
EO
portable and is available in different capacities.
Flash memory card
VI
A flash memory is an electronic storage device for storing digital
-V
I
BI
O
Memory Hierarchy
SI
O
N
[Link] are commonlu used in mobile phones,digital camera ect.
Memory Hierarchy
The main memory of a computer is used for storing programs and [Link] CPU can only
directly fetch instructions and data from cache [Link] is much smaller than main
memories because it is included inside the Processor [Link] memory is much slower ,due
to its low cost it is used to store large volumes of [Link] memory is used to increase the
speed ofexecution by making current programs and data readily available to the [Link]
memory is used to compensate for the speed difference between main memory and [Link]
memory hierarchy consists of all storage device inside the computer.
Prepared by Anishkumar G.S(9446784924)
BI
O
-V
I
SI
O
N
VI
EO
BL
Mailanish2001@[Link]