MIDTERM EXAMINATION
SPRING 2011 (15 MAY 2011)
CS410- VISUAL PROGRAMMING
Time: 60 min
Marks: 40
Total 26 Questions
20 x MCQs
2 x 2 Marks Questions
2 x 3 Marks Questions
2 x 5 Marks Question
Few MCQs which I remembered are as under:-
Question No: 1 ( Marks: 1 ) - Please choose one
Choose Command line user interface
► MS DOS
► MS Windows
► MS Word
► MS Visio
Question No: 2 ( 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: 3 ( Marks: 1 ) - Please choose one
We can undefine already defined preprocessor directive using
► #undef
► #unifdef
► #unenddef
► None of given
Question No: 4 ( Marks: 1 ) - Please choose one
C language is an extensible language.
► True
► False
Question No: 5 ( 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.
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: 6 ( Marks: 1 ) - Please choose one
GDI presents a?
► device-independent view
► device-dependent view
SUBJECTIVE QUESTIONS
Question No: 21
What is massage (2 Marks)
Question No: 22
Write any two Common controls of Window. (2 Marks)
Question No: 23
An application can set up for itself any logical coodinates system, using API. write down any two. (3 Marks)
Question No: 24
What is storage class? (3 Marks)
Question No: 25
What is an Instance Handle, Define briefly? (5 Marks)
Question No: 26
What are the Stock objects, Define briefly? (5 Marks)
No comments:
Post a Comment