Q1: Choose Command line user interface
(A) MS DOS
(B) MS Windows
(C) MS Word
(D) MS Visio
Answer: (A) MS DOS
Q2: C language is an extensible language.
(A) TRUE
(B) FALSE
(C) –
(D) –
Answer: (A) TRUE
Q3: Window Operating System does not give us
(A) Direct memory access
(B) Direct access video ports
(C) Direct memory interrupt
(D) All of the given
Answer: (D) All of the given
Q5: Name of Two-dimensional array is the address of
(A) First Column
(B) First Row
(C) Last Row
(D) Last Column
Answer: (B) First Row
Q6: *(a+i) can also be written as
(A) a[i]
(B) a[i+1]
(C) *a
(D) *a+1
Answer: (A) a[i]
Q7: char (*ptrString)[4][2]; How many bytes will be skipped by the statement ptrString += 2?
(A) –
(B) –
(C) –
(D) –
Answer: (D) –
Q8: What is a function pointer?
(A) A pointer that passes as an argument to the function
(B) A pointer that is declared inside the function
(C) A pointer that points to the starting address of the function
(D) A pointer that takes return value of some other function
Answer: (C) A pointer that points to the starting address of the function
Q10: How many bytes will be allocated to abc;
Union person{ char name[30]; int age; float height; };
void main(){ person abc; }
(A) –
(B) –
(C) –
(D) –
Answer: (C) –
Q11: We can display symbolic constants instead of numeric values using:
(A) Structures
(B) Enumeration
(C) Unions
(D) Typedef
Answer: (B) Enumeration
Q12: Union Person { char name[30]; int age; float height; };
How many bytes will skip after executing ptr = ptr +1;
Union Person abc, *ptr; Ptr = &abc; ptr = ptr +1;
(A) 30 bytes
(B) 31 bytes
(C) 32 bytes
(D) 38 bytes
Answer: (A) 30 bytes
Q13: Macro expands to the constant 1, to signify that this compiler conforms to ISO Standard C
(A) STDC
(B) STDC_VERSION
(C) STDC_HOSTED
(D) None of the given
Answer: (A) STDC
Q14: Preprocessor directive starts with which symbol?
(A) #
(B) &
(C) *
(D) %
Answer: (A) #
Q15: ___ is used to check the predefined identifiers.
(A) #include
(B) #ifdef
(C) #def
(D) #elif
Answer: (B) #ifdef
Q17: Identifier is not replaced if it appears
(A) In a comment
(B) Within a string
(C) As a part of a long identifier
(D) All of given
Answer: (D) All of given
Q18: ___ is/are type(s) of macro
(A) Object-like macro
(B) Function-like macro
(C) Both of the Given
(D) None of the given
Answer: (C) Both of the Given
Q20: We can undefine already defined preprocessor directive using
(A) #undef
(B) #unifdef
(C) #unenddef
(D) None of given
Answer: (A) #undef
Q21: Specific memory areas where parameters are copied are
(A) Stacks
(B) Arrays
(C) Queues
(D) Lists
Answer: (A) Stacks
Q22: Result of AND of two bits is TRUE (1) if only if both are TRUE (1)
(A) OR( | )
(B) XOR
(C) AND(&)
(D) NOR
Answer: (C) AND(&)
Q24: Static variables are made on ___ memory location
(A) Fixed
(B) Stack
(C) Pointer
(D) Variables
Answer: (A) Fixed
Q25: ___ is responsible for Stack Rewinding when called-function returns.
(A) Function
(B) Pointer
(C) Called function
(D) Caller function
Answer: (D) Caller function
Q26: We want to declare a variable in a function such that whenever the function is called, the variable is not reinitialized. The storage class of the variable must be:
(A) Static
(B) Auto
(C) Extern
(D) All of the given options
Answer: (C) Extern
Q28: GDI stands for
(A) Graphics Driver Interface
(B) Graphics Device Interface
(C) Graphics Direct Interface
(D) None of the given options
Answer: (A) Graphics Driver Interface
Q29: Entry function of Windows application is
(A) WinMain
(B) Main
(C) Java.main
(D) System.main
Answer: (A) WinMain
Q30: GDI is implemented through
(A) GDI.dll
(B) win32.dll
(C) GDI32.dll
(D) Kernel.dll
Answer: (C) GDI32.dll
Q31: DOS boxes are also called
(A) Main window
(B) Console window
(C) Dialogue box
(D) Arrays
Answer: (B) Console window
Q32: What kind of messages can be displayed using messagebox function?
(A) Long Messages
(B) Short Messages
(C) Null Messages
(D) None of Given
Answer: (B) Short Messages
Q33: How many parameters do WinMain function contain?
(A) –
(B) –
(C) –
(D) –
Answer: (C) –
Q35: 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 operating system?
(A) Kernel
(B) Win32
(C) Virtual Memory
(D) ROM
Answer: (A) Kernel
Q36: ___ is/are the type(s) of Logical Brushes.
(A) Solid
(B) Hatched
(C) Pattern
(D) All of the given
Answer: (D) All of the given
Q37: Message loop ends when the GetMessage() function removes the following message from the message queue:
(A) WM_QUIT
(B) WM_SETFOCUS
(C) WM_PAINT
(D) WM_SYSCOMMAND
Answer: (A) WM_QUIT
Q38: Which one of the following is not a nonqueued message?
(A) WM_ACTIVATE
(B) WM_SETFOCUS
(C) WM_WINDOWPOSCHANGED
(D) WM_SETCURSOR
Answer: (C) WM_WINDOWPOSCHANGED
Q39: The basic building block for displaying information in the “Microsoft Windows” graphical environment is
(A) Message Queue
(B) WinMain
(C) Message Loop
(D) Window
Answer: (D) Window
Q40: ___ handles user inputs and responds to user events independently.
(A) User-Interface Thread
(B) Worker Thread
(C) Kernel Thread
(D) None of given options
Answer: (A) User-Interface Thread
Q42: ___ is one of user interface elements
(A) Accelerator
(B) Message Loop
(C) WinProc
(D) None of given options
Answer: (A) Accelerator
Q43: ___ determines that, which threads should run and when they should run?
(A) Scheduler
(B) Thread itself
(C) Messages
(D) None of the given options
Answer: (A) Scheduler
Q44: A ___ is commonly used to handle background tasks
(A) Worker thread
(B) User Interface thread
(C) Parent thread
(D) Process thread
Answer: (A) Worker thread
Q46: If we destroy owner window then:
(A) Only owner window will be destroyed
(B) Only its owned window will be destroyed
(C) Both owner and owned window will be destroyed
(D) The application will crash
Answer: (C) Both owner and owned window will be destroyed
Q47: ___ provides the functionality to create and manage screen windows and most basic controls.
(A) GDI
(B) Common Dialog Box
(C) Common Control library
(D) User Interface
Answer: (D) User Interface
Q48: Two types of Subclassing are:
(A) Automated Subclassing and Manual Subclassing
(B) Static Subclassing and Dynamic Subclassing
(C) Local Subclassing and Global Subclassing
(D) Instance Subclassing and Global Subclassing
Answer: (D) Instance Subclassing and Global Subclassing
Q49: The first step in creating a window is registering a window class by
(A) Using DispatchMessage API
(B) Filling a WNDCLASS structure and calling RegisterClass
(C) Getting Window Handle
(D) None of given options
Answer: (B) Filling a WNDCLASS structure and calling RegisterClass
Q50: Which of the following class of window is pre-registered?
(A) Main window
(B) Pop-up window
(C) System window
(D) Child window
Answer: (C) System window
Q51: For whom system registers the system class?
(A) Window class
(B) Register class
(C) Process
(D) None of given
Answer: (C) Process
Q52: The ___ function writes a character string at the specified location, using the currently selected font, background color, and text color
(A) printf(…)
(B) PrintText(…)
(C) TextOut(…)
(D) cout
Answer: (C) TextOut(…)
Q53: Graphical device interface communicates between application and ___ driver
(A) Port
(B) Operating System
(C) Device
(D) Kernel
Answer: (C) Device