SECTION 1
Q.1: Multiple choice questions.
1) An array is collection of variables of
a) Same data types scattered throughout memory
b) Different data types scattered throughout memory
c) Same data types stored in consecutive memory location in memory
d) Different & same data types stored in consecutive memory location in
memory
e) All of the above
2) What will be the output of following code
#include<iostream.h>
#include <conio.h>
int main ()
{
cout << (int)(double)16.2/3;
return 0 ;
}
a) 4
b) 5.5
c) 5
d) None of above
3) What will be the output of following code
#include<iostream.h>
#include <conio.h>
int main ()
{
int i =32767;
i++;
cout<< i;
return 0;
}
a) 32767
b) 32768
e) error
f) Garbage value
4) At least one statement is always executed in case of
a) for
b) while
c) do while
d) none of above
5) What is not allowed in case expression of switch case
a) 3
1
Q.1: Multiple choice questions.
1) An array is collection of variables of
a) Same data types scattered throughout memory
b) Different data types scattered throughout memory
c) Same data types stored in consecutive memory location in memory
d) Different & same data types stored in consecutive memory location in
memory
e) All of the above
2) What will be the output of following code
#include<iostream.h>
#include <conio.h>
int main ()
{
cout << (int)(double)16.2/3;
return 0 ;
}
a) 4
b) 5.5
c) 5
d) None of above
3) What will be the output of following code
#include<iostream.h>
#include <conio.h>
int main ()
{
int i =32767;
i++;
cout<< i;
return 0;
}
a) 32767
b) 32768
e) error
f) Garbage value
4) At least one statement is always executed in case of
a) for
b) while
c) do while
d) none of above
5) What is not allowed in case expression of switch case
a) 3
1