Intro to Computing - summer 2014
Mid Term
July 9, 2014 Time: 150 min
SECTION 1
Q.1: Multiple choice questions. 5
Note: Write the correct option on answer sheet.
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
1
Mid Term
July 9, 2014 Time: 150 min
SECTION 1
Q.1: Multiple choice questions. 5
Note: Write the correct option on answer sheet.
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
1