05-12-2011, 08:06 PM
full solve papers in attachment
MIDTERM EXAMINATION
Spring 2011 CS201- Introduction to Programming
Question No: 1 ( Marks: 1 ) - Please choose one_______
There are mainly------------------- types of software
Two
Three
Four
Five
Question No: 2 ( Marks: 1 ) - Please choose one____
In C/C++ the #include is called,
Header file
Preprocessor Directive
Statement
Function
Question No: 3 ( Marks: 1 ) - Please choose one___________
&& is------------------ operator.
An arithmetic
Logical
Relational
Unary
Question No: 4 ( Marks: 1 ) - Please choose one_______
In flow chart, the symbol used for decision making is,
Rectangle
Circle
Arrow
Diamond
Question No: 5 ( Marks: 1 ) - Please choose one______
The correct syntax of do-while loop is,
(condition ) while; do { statements; };
{ statements; } do-while ();
while(condition); do { statements; };
do { statements; } while (condition);
Question No: 6 ( Marks: 1 ) - Please choose one___________
C++ views each file as a sequential stream of________________ .
Bytes
Bits
0’s or 1’s
Words
Question No: 7 ( Marks: 1 ) - Please choose one__________________
If the elements of an array are already sorted then the useful search algorithm is,
Linear search
Binary search
Quick search
Random search
Question No: 8 ( Marks: 1 ) - Please choose one___________
The address operator (&) can be used with,
Statement
Expression
Variable
Constant
Question No: 9 ( Marks: 1 ) - Please choose one_______________
When a pointer is incremented, it actually jumps the number of memory addresses
According to data type
1 byte exactly
1 bit exactly
A pointer variable can not be incremented
Question No: 10 ( Marks: 1 ) - Please choose one______________
Each pass through a loop is called a/an
enumeration
iteration
culmination
pass through
Question No: 11 ( Marks: 1 ) - Please choose one_____________
Call by reference mechanism should be used in a program when there is
i. large amount of data to be passed
ii. small amount of data to be passed
iii. need to change the passed data
iv. no need to change the passed data
Choose the appropriate option for the above case.
(i) and (ii) only
(i) and (iii) only
(ii) and (iii) only
(ii) and (iv) only
Question No: 12 ( Marks: 1 ) - Please choose one________
Which of the following is the starting index of an array in C++?
0
1
-1
any number
Question No: 13 ( Marks: 1 ) - Please choose one________
The return type of a function that do not return any value must be __________
int
void
double
float
Question No: 14 ( Marks: 1 ) - Please choose one_________
Which of the following is an extension of header file?
.exe
.txt
.h
MIDTERM EXAMINATION
Spring 2011 CS201- Introduction to Programming
Question No: 1 ( Marks: 1 ) - Please choose one_______
There are mainly------------------- types of software
Two
Three
Four
Five
Question No: 2 ( Marks: 1 ) - Please choose one____
In C/C++ the #include is called,
Header file
Preprocessor Directive
Statement
Function
Question No: 3 ( Marks: 1 ) - Please choose one___________
&& is------------------ operator.
An arithmetic
Logical
Relational
Unary
Question No: 4 ( Marks: 1 ) - Please choose one_______
In flow chart, the symbol used for decision making is,
Rectangle
Circle
Arrow
Diamond
Question No: 5 ( Marks: 1 ) - Please choose one______
The correct syntax of do-while loop is,
(condition ) while; do { statements; };
{ statements; } do-while ();
while(condition); do { statements; };
do { statements; } while (condition);
Question No: 6 ( Marks: 1 ) - Please choose one___________
C++ views each file as a sequential stream of________________ .
Bytes
Bits
0’s or 1’s
Words
Question No: 7 ( Marks: 1 ) - Please choose one__________________
If the elements of an array are already sorted then the useful search algorithm is,
Linear search
Binary search
Quick search
Random search
Question No: 8 ( Marks: 1 ) - Please choose one___________
The address operator (&) can be used with,
Statement
Expression
Variable
Constant
Question No: 9 ( Marks: 1 ) - Please choose one_______________
When a pointer is incremented, it actually jumps the number of memory addresses
According to data type
1 byte exactly
1 bit exactly
A pointer variable can not be incremented
Question No: 10 ( Marks: 1 ) - Please choose one______________
Each pass through a loop is called a/an
enumeration
iteration
culmination
pass through
Question No: 11 ( Marks: 1 ) - Please choose one_____________
Call by reference mechanism should be used in a program when there is
i. large amount of data to be passed
ii. small amount of data to be passed
iii. need to change the passed data
iv. no need to change the passed data
Choose the appropriate option for the above case.
(i) and (ii) only
(i) and (iii) only
(ii) and (iii) only
(ii) and (iv) only
Question No: 12 ( Marks: 1 ) - Please choose one________
Which of the following is the starting index of an array in C++?
0
1
-1
any number
Question No: 13 ( Marks: 1 ) - Please choose one________
The return type of a function that do not return any value must be __________
int
void
double
float
Question No: 14 ( Marks: 1 ) - Please choose one_________
Which of the following is an extension of header file?
.exe
.txt
.h
0300-9520262
Get solution in 24 hour |cpmputer & internet
mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
