Professional Documents
Culture Documents
Intro To Programming - CS201 MCQS Solved - MAK
Intro To Programming - CS201 MCQS Solved - MAK
com
MIDTERM EXAMINATION
Spring 2010
CS201- Introduction to Programming (Session - 2)
Ref No: 1348086
Time: 60 min
Marks: 38
Student Info
StudentID:
Center:
ExamDate:
► write()
► seekg()
► get()
3►
4►
5►
7►
► 10
► 11
www.vuattach.com
► 12
► 13
► *ptr = “programming” ;
i = 5, j = 5►
www.vuattach.com
i = 5, j = 8►
i = 4, j = 8►
i = 5, j = 9►
reference►
data type►
value►
data►
Ans:
Int x=10….No ending semicolon.
*ptr=5 .. Declaring a pointer to constant integer.You can not use this pointer to change the
value being pointed to.
www.vuattach.com
#include <iostream.h>
union mytypes_t {
char c;
int i;
float f;
} mytypes;
int main(){
mytypes.c = 'H';
mytypes.i = 15;
mytypes.i = 15;
mytypes.c = 'H';
system("PAUSE");
return 0;
}
www.vuattach.com