MIDTERM EXAMINATION
Fall 2008
CS410- Visual Programming (Session - 2)
Time: 60 min
Marks: 38
Question No: 1 ( Marks: 1 ) - Please choose one
► True
► False
Question No: 2 ( Marks: 1 ) - Please choose one
► WM_BRUSH
► WM_PAINT
► WM_COLOR
► WM_CANVAS
Question No: 3 ( Marks: 1 ) - Please choose one
► Logical space
► Physical Space
► Virtual Space
► Default Space
Question No: 4 ( Marks: 1 ) - Please choose one
► Window class
► Register class
► Process
► None of given
Question No: 5 ( Marks: 1 ) - Please choose one
► MS DOS
► MS Windows
► MS Word
► MS Visio
Question No: 6 ( Marks: 1 ) - Please choose one
► Kernel
► Win32
► Virtual Memory
► ROM
Question No: 7 ( Marks: 1 ) - Please choose one
► Line No
► File No
► Page No
► None of given
Question No: 8 ( Marks: 1 ) - Please choose one
► #undef
► #unifdef
► #unenddef
► None of given
Question No: 9 ( Marks: 1 ) - Please choose one
► In a comment
► With in a string
► As a part of a long identifier
► All of given
Question No: 10 ( Marks: 1 ) - Please choose one
{
char name[30]; //30 bytes
int age;
float height;
};
How many bytes will skip after executing ptr = ptr +1.
Union Person abc, *ptr;
Ptr = &abc;
ptr = ptr +1;
► 30 bytes will skip after executing ptr = ptr +1.
► 31 bytes will skip after executing ptr = ptr +1.
► 32 bytes will skip after executing ptr = ptr +1.
► 38 bytes will skip after executing ptr = ptr +1.
Question No: 11 ( Marks: 1 ) - Please choose one
► True
► False
Question No: 12 ( Marks: 1 ) - Please choose one
► Solid
► Hatched
► Patched
► All of the given
Question No: 13 ( Marks: 1 ) - Please choose one
► Object-like macro
► Function-like macro
► All of the given
► None of the given
Question No: 14 ( Marks: 1 ) - Please choose one
► _STD_
► _STDC_
► _STDC_HOSTED_
► _STDC_VERSION_
Question No: 15 ( Marks: 1 ) - Please choose one
How many bytes will be skipped by the statement ptrString += 2?
► 16
► 1
► 4
► 8
Question No: 16 ( Marks: 1 ) - Please choose one
► Only owner window will be destroyed
► Only its owned window will be destroyed
► Both owner and owned window will be destroyed
► The application will be crashed
Question No: 17 ( Marks: 1 )
int *ptr, ptr_b;
Question No: 18 ( Marks: 1 )
Question No: 19 ( Marks: 2 )
Question No: 20 ( Marks: 3 )
Question No: 21 ( Marks: 5 )
int squares(int n);
// Precondition: n>=1
// Returns the sum of the squares of the numbers 1 through n.
For Example, squares(3) returns 14 because 12+22+ 32 is 14.
Question No: 22 ( Marks: 10 )
No comments:
Post a Comment
PLEASE COMMENT ABOUT YOUR VISIT AND MY SITE
Note: Only a member of this blog may post a comment.