Introduction
of C
Questions
and Answers
1. Advantages of structured programming
[SEE 2075] [SLC 2066]
a)
It is easy to design code and test
the program modules independently
b)
It is possible to use a single
module in different in different places which reduces program codes.
2. Data
types used in C language [SEE 2074] [SLC
2072] [SLC 2071 S] [SLC 2065] [SLC
2068] [SLC 2070] [SEE 2065 S] [SLC 2066 S] [SLC 2067 S] [SLC 2069 S] [SLC
2070 S] [SQE 2074K]
a) char b) int c)
float d) double
3. Characteristics
of C language [SEE 2075 U] [SEE 2075 S 2] [SLC 2071] [SLC 2067] [SLC 2069]
a)
It
is a high level language with some features of low level language.
b)
It
is mostly used to prepare system software.
c)
It
is structured programming language with function procedure.
d)
It
has enough number of inbuilt functions and operators.
e)
It
is a small programming language which occupies less memory space.
4. Features
of C- language [SEE 2073 U]
a)
Simple and easy to use
b)
Occupies less memory
c)
C is the structured programming
language.
d)
C has powerful set of operators.
e)
C is a high level programming
language.
f)
C contains very less number of
keywords
5. Variable
[SEE 2073] [SLC 2071 S] [SLC 2070] [MFT
2075]
A variable is a location in the
memory of a computer whose value may change during the execution of program.
6. Constant
Constant
are the values that do not change during the execution of a program.
7. Operator
[SQE 2075K]
Operators
are special symbols that are meant for specific tasks or operators.
8. Logical
Operator [SEE 2075]
The
operators used for logical operation is called logical operator.
9. Loop
[SEE 2073] [SLC 2068] [SLC 2067 S] [SLC 2070 S]
A
set of statements which is used to repeat a block of statements for a specific
number of times or as long as the condition is true/false is called loop.
10. Comparing
C and QBASIC language [SEE 2074 U] [SLC 2068 S]
QBASIC
|
C
|
It is a high level language without feature of low level
language.
|
It is a high level language with some features of low
level language.
|
It is mostly used to design application software.
|
It is mostly used to prepare system software.
|
It supports structure programming with sub and function
procedure.
|
It is a structured programming language with function
procedure.
|
It is not case sensitive
|
It is case sensitive
|
IBM PC version of BASIC has around 159 keywords.
|
It has only 32 keywords.
|