PROMOTE MY BLOG: JUST CLICK BELOW BUTTON

Search Any Paper On This Blog

Friday, January 28, 2011

CS410- Visual Programming MIDTERM?FINALTERM PAPERS

MIDTERM  EXAMINATION
Fall 2008
CS410- Visual Programming (Session - 2)
Time: 60 min
Marks: 38
Question No: 1    ( Marks: 1 )    - Please choose one
 WM_PAINT message may be sent when a drop down menu disappear.
       True
       False
   
Question No: 2    ( Marks: 1 )    - Please choose one
 Which message is generated by the system only when any part of application window becomes invalid?
       ► WM_BRUSH
       ► WM_PAINT
       ► WM_COLOR
       ► WM_CANVAS
   
Question No: 3    ( Marks: 1 )    - Please choose one
 Which GDI environmental space has limited colors.
       ► Logical space
       ► Physical Space
       ► Virtual Space
       ► Default Space
   
Question No: 4    ( Marks: 1 )    - Please choose one
 For whom system registers the system class.
       ► Window class
       ► Register class
       ► Process
       ► None of given
   
Question No: 5    ( Marks: 1 )    - Please choose one
 Choose Command line user interface


       ► MS DOS
       ► MS Windows
       ► MS Word
       ► MS Visio
   
Question No: 6    ( Marks: 1 )    - Please choose one
 Pump the blood in the whole body of a human being. This work done by the heart but what will be the heart of an operation system.

       ► Kernel
       ► Win32
       ► Virtual Memory
       ► ROM
   
Question No: 7    ( Marks: 1 )    - Please choose one
 __Line__ convert the current _____ in program.
       ► Line No
       ► File No
       ► Page No
       ► None of given
   
Question No: 8    ( Marks: 1 )    - Please choose one
 We can undefine already defined preprocessor directive using

       ► #undef
       ► #unifdef
       ► #unenddef
       ► None of given
   
Question No: 9    ( Marks: 1 )    - Please choose one
 Identifier is not replaced if it appears
       ► 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
 Union Person
{
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
 C language is an extensible language.


       ► True

       ► False
   
Question No: 12    ( Marks: 1 )    - Please choose one
 ______ is/are the type(s) of Logical Brushes.
       ► Solid
       ► Hatched
       ► Patched
       ► All of the given
   
Question No: 13    ( Marks: 1 )    - Please choose one
 ____________ is/are type(s) of macro.
       ► Object-like macro
       ► Function-like macro
       ► All of the given
       ► None of the given
  
Question No: 14    ( Marks: 1 )    - Please choose one
 __________ macro expands to the constant 1, to signify that this compiler conforms to ISO standard C.

       _STD_
       _STDC_
       _STDC_HOSTED_
       _STDC_VERSION_
   
Question No: 15    ( Marks: 1 )    - Please choose one
 char (*ptrString)[4][2];
How many bytes will be skipped by the statement ptrString += 2?
       ► 16

       ► 1
       ► 4
       ► 8
   
Question No: 16    ( Marks: 1 )    - Please choose one
 If we destroy owner window then _____________.
       ► 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 )
 What will be the type of ptr_b?
int *ptr, ptr_b;

   
Question No: 18    ( Marks: 1 )
 How many kinds of macros are there?
   
Question No: 19    ( Marks: 2 )
 What are the GDI environment working space names?  
  
Question No: 20    ( Marks: 3 )
 List down three Pre-Defined GDI objects in window  
   
Question No: 21    ( Marks: 5 )
 write a recursive function definition for the following function:   
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 )
 what are macros and its types? Explain it with example.

No comments:

Post a Comment

PLEASE COMMENT ABOUT YOUR VISIT AND MY SITE

Note: Only a member of this blog may post a comment.