CS410 – Visual Programming: Midterm Important MCQs (157 Solved Questions)
Computer Science • Read every solved MCQ with its verified answer key directly on this page. Free, no login required.
All 664 Midterm Packs · CS410 Course Page · CS410 Subjective Pack (57 Q&As)
-
*(a+i) can also be written as ________________
Topic: C Language Basics and Pointers
- a[i] ✓ Correct answer
- a[i+1]
- *a
- *a+1
-
char (*ptrString)[4][2]; How many bytes will be skipped by the statement ptrString += 2?
Topic: C Language Basics and Pointers
- 16 ✓ Correct answer
- 1
- 4
- 8
-
What is a function pointer?
Topic: C Language Basics and Pointers
- A pointer that passes as an argument to the function
- A pointer that is declared inside the function
- A pointer that takes return value of some other function
- A pointer that points to the starting address of the function ✓ Correct answer
-
Union person { char name[30]; int age; float height; }; void main() { person abc; } How many bytes will be allocated to abc?
Topic: C Language Basics and Pointers
- 42
- 30 ✓ Correct answer
- 38
- 36
-
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;
Topic: C Language Basics and Pointers
- 30 bytes will skip after executing ptr = ptr +1 ✓ Correct answer
- 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.
-
Ptr -> age is equivalent to _______________
Topic: C Language Basics and Pointers
- *ptr.age
- ptr.age
- (ptr).age
- (*ptr).age ✓ Correct answer
-
Long chain of keywords in declaration can be shortened. Above line is the advantage of ______.
Topic: C Language Basics and Pointers
- Typedef ✓ Correct answer
- Struct
- Union
- None of given
-
double *ptr is pointer variable which stores double type address.
Topic: C Language Basics and Pointers
- True ✓ Correct answer
- False
-
Which languages are more close to machine language:
Topic: C Language Basics and Pointers
- Low Level Languages ✓ Correct answer
- Machine Level Language
- C++
- Java
-
Name of two dimensional array is the address of _________
Topic: C Language Basics and Pointers
- First Column
- First Row ✓ Correct answer
- Last Row
- Last Column
-
We can display symbolic constants instead of numeric values using:
Topic: C Language Basics and Pointers
- Structures
- Enumeration ✓ Correct answer
- Unions
- Typedef
-
Result of _________________ of two bits is TRUE (1) if only if both are TRUE (1)
Topic: C Language Basics and Pointers
- OR (I)
- XOR
- AND (&) ✓ Correct answer
- NOR
-
Which of the following is not a user defined data type?
Topic: C Language Basics and Pointers
- Structures
- Enumerations
- Typedefs
- None of the above ✓ Correct answer
-
Consider the following code snippet: char x = 'Z'; float y = 8; char *xPtr = &x; float *yPtr = &y; xPtr++; yPtr++; Assuming xPtr has the address 105 and yPtr has the address 102 initially, what will be the addresses of xPtr and yPtr respectively after the execution of the two increment statements?
Topic: C Language Basics and Pointers
- 106, 106 ✓ Correct answer
- 107, 107
- 107, 106
- 106, 107
-
__________ macro expands to the constant 1, to signify that this compiler conforms to ISO standard C.
Topic: Preprocessor and Macros
- __STDC__ ✓ Correct answer
- __STDC_VERSION__
- __STDC_HOSTED__
- None of the given
-
Preprocessor directive starts with _________ symbol.
Topic: Preprocessor and Macros
- # ✓ Correct answer
- &
- *
- %
-
___________ is used to check the predefined identifiers.
Topic: Preprocessor and Macros
- #include
- #ifdef ✓ Correct answer
- #def
- #elif
-
Identifier is not replaced if it appears:
Topic: Preprocessor and Macros
- In a comment
- With in a string
- As a part of a long identifier
- All of the given ✓ Correct answer
-
____________ is/are type(s) of macro.
Topic: Preprocessor and Macros
- Object-like macro
- Function-like macro
- All of the given ✓ Correct answer
- None of the given
-
We can undefine already defined preprocessor directive using
Topic: Preprocessor and Macros
- #undef ✓ Correct answer
- #unifdef
- #unenddef
- None of given
-
If first non wide space character will be #, so it will be called _____.
Topic: Preprocessor and Macros
- Preprocessor Directives ✓ Correct answer
- Preprocessor Folder
- Preprocessor Director
- None of Given
-
__Line__ convert the current _____ in program.
Topic: Preprocessor and Macros
- Line No ✓ Correct answer
- File No
- Page No
- None of given
-
Static variables are made on ___________ memory location.
Topic: Storage Classes, Functions and Calling Conventions
- Fixed ✓ Correct answer
- Stack
- Pointer
- Variables
-
_____________ is responsible for Stack Rewinding when called-function returns.
Topic: Storage Classes, Functions and Calling Conventions
- Function
- Pointer
- Called function
- Caller function ✓ Correct answer
-
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:
Topic: Storage Classes, Functions and Calling Conventions
- Auto
- Static ✓ Correct answer
- Extern
- All of the given options
-
Specific memory areas where parameters are copied are ______________
Topic: Storage Classes, Functions and Calling Conventions
- Stacks ✓ Correct answer
- Arrays
- Queues
- Lists
-
Choose Command line user interface:
Topic: Windows Basics and WinMain
- MS DOS ✓ Correct answer
- MS Windows
- MS Word
- MS Visio
-
C language is an extensible language.
Topic: Windows Basics and WinMain
- True ✓ Correct answer
- False
-
Window Operating System Do not give us:
Topic: Windows Basics and WinMain
- Direct memory access
- Direct access video ports
- Direct memory interrupt
- All of the given ✓ Correct answer
-
GDI stands for __________
Topic: Windows Basics and WinMain
- Graphics Driver Interface
- Graphics Device Interface ✓ Correct answer
- Graphics Direct Interface
- None of the given options
-
What will be the entry point to a Windows program?
Topic: Windows Basics and WinMain
- WinMain ✓ Correct answer
- Main
- Java.main
- System.main
-
DOS boxes are also called ___________
Topic: Windows Basics and WinMain
- Main Window
- Console Window ✓ Correct answer
- Dialogue Box
- Arrays
-
What kind of messages can be display using message box function?
Topic: Windows Basics and WinMain
- Long Messages
- Short Messages ✓ Correct answer
- Null Messages
- None of Given
-
How many parameters does WinMain function contain?
Topic: Windows Basics and WinMain
- 1
- 2
- 3
- 4 ✓ Correct answer
-
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.
Topic: Windows Basics and WinMain
- Kernel ✓ Correct answer
- Win32
- Virtual Memory
- ROM
-
Which of the following is not a feature of windows programming?
Topic: Windows Basics and WinMain
- Resource sharing
- Device independent programming
- Multitasking
- Single path of execution ✓ Correct answer
-
Is a subsystem responsible for displaying text and images on display devices and printers?
Topic: Windows Basics and WinMain
- Brushes
- Pens
- GDI (Graphics Device Interface) ✓ Correct answer
- Kernel
-
The basic building block for displaying information in the "Microsoft Windows" graphical environment is __________
Topic: Windows Basics and WinMain
- Message Queue
- WinMain
- Message Loop
- Window ✓ Correct answer
-
In 32-bit windows programming, we are freed from the curse of 64k segments.
Topic: Windows Basics and WinMain
- True ✓ Correct answer
- False
-
Microsoft Windows consists of three important components. These are:
Topic: Windows Basics and WinMain
- Kernel, User and GDI ✓ Correct answer
- Kernel, User and Pointer
- GDI, Pointer and User
- Kernel, Pointer and GDI
-
___________ provides the functionality to create and manage screen windows and most basic controls.
Topic: Windows Basics and WinMain
- GDI
- Common Dialog Box
- Common Control library
- User Interface ✓ Correct answer
-
The first step in creating a window is registering a window class by _________
Topic: Window Classes and Window Creation
- Using DispatchMessage API
- Filling a WNDCLASS structure and calling RegisterClass ✓ Correct answer
- Getting Window Handle
- None of given options
-
Which of the following class of window is pre-registered?
Topic: Window Classes and Window Creation
- main window
- pop-up window
- system window ✓ Correct answer
- child window
-
____________ tell the operating system about the characteristics and physical layout of its windows.
Topic: Window Classes and Window Creation
- Register Class
- Object Class
- Window Class ✓ Correct answer
- Common Class
-
_______ is the handle to icon associated with Window Class.
Topic: Window Classes and Window Creation
- hIcon ✓ Correct answer
- hCursor
- HINSTANCE
- UINT
-
We can create a window using ______________
Topic: Window Classes and Window Creation
- RegisterClass ( )
- WNDClass
- CreateWindow ( ) ✓ Correct answer
- DestroyWindow( )
-
_________ is unique identifier of the registered window class return by Registeredclass ()
Topic: Window Classes and Window Creation
- Handle
- Cursor
- Object
- ATOM ✓ Correct answer
-
Which function we use to register windows classes in window?
Topic: Window Classes and Window Creation
- RegisterClass(); ✓ Correct answer
- RegistersClass();
- RegisterWin();
- WinReg();
-
The application can load its resources when res file is compiled:
Topic: Window Classes and Window Creation
- res file is linked to the executable file ✓ Correct answer
- rc file is compiled and but not linked yet
- resource.h file is included
- None of the above
-
What information about the resources is placed in resource.h?
Topic: Window Classes and Window Creation
- Definitions ✓ Correct answer
- Data structures
- Identifiers
- Editors
-
What will be the icon of shortcut of executable file of an application that has no icon resource?
Topic: Window Classes and Window Creation
- Default Window .exe file icon ✓ Correct answer
- Each application must have at least one icon
- No icon
- Visual C++ icon
-
A Window that has a parent is called a ____ Window
Topic: Window Classes and Window Creation
- Parent
- Main
- Child ✓ Correct answer
- Owner Window
-
If we destroy owner window then _____________.
Topic: Window Classes and Window Creation
- Only owner window will be destroyed
- Only its owned window will be destroyed
- Both owner and owned window will be destroyed ✓ Correct answer
- The application will be crashed
-
Message loop ends when the GetMessage() function removes the following message from the message queue:
Topic: Messages and the Message Loop
- WM_SETFOCUS
- WM_PAINT
- WM_SYSCOMMAND
- WM_QUIT ✓ Correct answer
-
Which one of the following is not a nonqueued message?
Topic: Messages and the Message Loop
- WM_ACTIVATE
- WM_SETFOCUS
- WM_WINDOWPOSCHANGED
- WM_SETCURSOR
- None of the given options ✓ Correct answer
-
When a menu item is clicked, WM_COMMAND message is send and ID of this menu item is sent in:
Topic: Messages and the Message Loop
- wParam ✓ Correct answer
- lParam
- hInstance
- HWND
-
______________ inserts a WM_QUIT message in the program’s message queue.
Topic: Messages and the Message Loop
- PostQuitMessage (0) ✓ Correct answer
- WM_TIMER
- KillTimer ()
- DispatchMessage ()
-
Which message is generated by the system only when any part of application window becomes invalid?
Topic: Messages and the Message Loop
- WM_BRUSH
- WM_PAINT ✓ Correct answer
- WM_COLOR
- WM_CANVAS
-
_______________ function is used to invalidate a window or part of it.
Topic: Messages and the Message Loop
- BeginPaint
- InvalidateRect ✓ Correct answer
- EndPaint
- DefWindowProc
-
Which message function determined where to send message.
Topic: Messages and the Message Loop
- DispatchMessage ✓ Correct answer
- MessageDispatch
- GetMessage
- None of the given
-
When a menu item is clicked, __________ message is sent.
Topic: Messages and the Message Loop
- WM_MENUITEMCLICKED
- WM_MENUCLICKED
- WM_COMMAND ✓ Correct answer
- WM_PAINT
-
There cannot be multiple _______________ messages in message queue.
Topic: Messages and the Message Loop
- WM_PAINT ✓ Correct answer
- WM_TIMER
- WM_QUIT
- WParam
-
It is not possible to define our own window messages.
Topic: Messages and the Message Loop
- True
- False ✓ Correct answer
-
Which of the following is an application defined message:
Topic: Messages and the Message Loop
- WM_COMMAND
- WM_SYSCOMMAND
- WM_CREATE
- WM_USER ✓ Correct answer
-
WM_PAINT message may be sent when a drop-down menu disappears.
Topic: Messages and the Message Loop
- True ✓ Correct answer
- False
-
Which one of the following messages has the lowest priority?
Topic: Messages and the Message Loop
- WM_SYSCOMMAND
- WM_PAINT
- WM_QUIT ✓ Correct answer
- WM_COMMAND
-
Which function is used to convert the message into a character message?
Topic: Messages and the Message Loop
- TranslateMessage ✓ Correct answer
- DispatchMessage
- GetMessage
- PostMessage
-
Device-independent value represents:
Topic: Keyboard Input and Accelerators
- Virtual key code ✓ Correct answer
- Key code
- Read only code
- Mix code
-
Virtual key code defined by
Topic: Keyboard Input and Accelerators
- Kernel
- Application
- System ✓ Correct answer
- None of given
-
When we keep some key pressed for a long time, which one of the following technique keeps the message queue concise
Topic: Keyboard Input and Accelerators
- Older messages are discarded
- Call the GetKeyState() function ✓ Correct answer
- Repeat Count contains how many times WM_KEYDOWN message was sent
- There is no such technique
-
When you release a key from keyboard, _______ message is sent to your application message queue.
Topic: Keyboard Input and Accelerators
- WM_KEYRELEASE
- WM_KEYDOWN
- WM_KEYPRESSED
- WM_KEYUP ✓ Correct answer
-
When an application receives a keystroke message, ______ code is there in wParam parameter.
Topic: Keyboard Input and Accelerators
- ASCII key
- Normal key
- Extended key
- Virtual key ✓ Correct answer
-
Which function is not used to handle a caret?
Topic: Keyboard Input and Accelerators
- CreateCaret()
- DestroyCaret()
- SetCaretPos()
- DenyCaret() ✓ Correct answer
-
In the case of extended keyboard characters, first byte of keyboard buffer contains ____ and second byte contains ______.
Topic: Keyboard Input and Accelerators
- scan code, extended code
- extended code, scan code ✓ Correct answer
- 0, scan code
- scan code, 0
-
Which of the following is compulsory about a keyboard accelerator?
Topic: Keyboard Input and Accelerators
- Accelerator must start with "ID_".
- Accelerator and corresponding menu item must have identical identifiers.
- You must not write DISCARDABLE in the resource script of accelerator.
- All of given ✓ Correct answer
-
An accelerator _____________ to correspond to a menu command.
Topic: Keyboard Input and Accelerators
- Needs
- Needs not ✓ Correct answer
- Is essential
- Is necessary
-
_______ is one of user interface elements.
Topic: Keyboard Input and Accelerators
- Accelerator ✓ Correct answer
- Message Loop
- WinProc
- None of given options
-
GDI is implemented through ____________________
Topic: GDI and Painting
- GDI.dll
- Win32.dll
- GDI32.dll ✓ Correct answer
- Kernel
-
______ is/are the type(s) of Logical Brushes.
Topic: GDI and Painting
- Solid
- Hatched
- Pattern
- All of the given ✓ Correct answer
-
The _____ function writes a character string at the specified location, using the currently selected font, background color, and text color.
Topic: GDI and Painting
- printf(...)
- PrintText(...)
- TextOut(...) ✓ Correct answer
- cout
-
Graphical device interface communicates between application and _______ driver
Topic: GDI and Painting
- Port
- Operating System
- Device ✓ Correct answer
- Kernel
-
_________ is the smallest rectangle enclosing the portion of a window or client Area affected by recent drawing operations
Topic: GDI and Painting
- Invalid Rectangle
- Accumulated Bounding Rectangle ✓ Correct answer
- Accumulated Client Rect
- All of the given options
-
The ___ function retrieves a handle to a display device context (DC) for the client area of a specified window or for the entire screen.
Topic: GDI and Painting
- GetHwnd
- GetDC ✓ Correct answer
- GetGDI
- GetStockObject
-
_______ acts as a buffer between applications and output devices.
Topic: GDI and Painting
- GDI ✓ Correct answer
- Kernel32
- OS
- CPU
-
GDI presents _________
Topic: GDI and Painting
- Device-independent view ✓ Correct answer
- Device-dependent view
- Monitor-dependent view
- None of given
-
If we pass NULL value to "GetDC" function, it retrieves the DC for the:
Topic: GDI and Painting
- Entire Screen ✓ Correct answer
- Parent Window
- Client Window
- It does not retrieves DC
-
A ________ is a structure that defines a set of graphic objects and their associated attributes, as well as the graphic modes that affect output.
Topic: GDI and Painting
- Kernel
- Pen
- Bitmap
- Device Context ✓ Correct answer
-
Condition(s) in which WM_PAINT message may be sent is/are ______________
Topic: GDI and Painting
- A dialog box is maximized
- A drop-down menu disappears
- A tool tip is displayed and then it hides
- All of the given options ✓ Correct answer
-
The system paints the background for a window or gives the window, the opportunity to do so by sending it a _______ message
Topic: GDI and Painting
- WM_FILLBKGND
- WM_ERASEBKGND ✓ Correct answer
- WM_SYSCOMMAND
- WM_OVERLAPPED
-
The window ______ is the color or pattern used to fill the client area before a window begins drawing
Topic: GDI and Painting
- Caption
- Color Palette
- Background ✓ Correct answer
- Foreground
-
The SelectObject function selects an object into the specified
Topic: GDI and Painting
- Object Context (OC)
- Device Context (DC) ✓ Correct answer
- Window Context (WC)
- Class Context (CC)
-
In the GDI environment there are two working spaces
Topic: GDI and Painting
- Logical and the Physical ✓ Correct answer
- Local and the Global
- Static and the Dynamic
- Direct and the Indirect
-
Which GDI environmental space has limited colors?
Topic: GDI and Painting
- Logical space
- Physical Space ✓ Correct answer
- Virtual Space
- Default Space
-
What is the first step the application should do to draw, in a window without using WM_PAINT message?
Topic: GDI and Painting
- Quit device context
- Release device context
- Retrieve device context ✓ Correct answer
- Outline the shape to be drawn
-
The _________ function draws a rectangle
Topic: GDI and Painting
- SetRectCoords(...)
- ShowRectangle(...)
- DrawRectangle(...)
- Rectangle(...) ✓ Correct answer
-
The "GetDlgItem" function retrieves a ______ to a control.
Topic: Dialog Boxes and Controls
- Handle ✓ Correct answer
- Pointer
- Object
- None of the given options
-
The WM_INITDIALOG message is sent to the dialog box procedure ______________
Topic: Dialog Boxes and Controls
- Immediately before a dialog box is displayed ✓ Correct answer
- Immediately after a dialog box is displayed
- When DialogProc is called
- When HideDialog is called
-
Which one of the following controls cannot receive input focus?
Topic: Dialog Boxes and Controls
- Edit
- Static ✓ Correct answer
- Option Button
- Push Button
-
The DialogProc function is used to ________
Topic: Dialog Boxes and Controls
- Create a Dialog
- Destroy a Dialog
- Hide a Dialog
- Process messages sent to a modal or modeless dialog box ✓ Correct answer
-
An application destroys a modal dialog box by using the ________ function
Topic: Dialog Boxes and Controls
- EndDialog ✓ Correct answer
- TerminateDialog
- DestroyDialog
- DestroyModalDialog
-
If the dialog box procedure returns FALSE, then which message handling will be performed?
Topic: Dialog Boxes and Controls
- Default ✓ Correct answer
- Instance
- Object
- None of the given
-
DLU is:
Topic: Dialog Boxes and Controls
- Handle of a dialog
- Handle of a modal dialog only
- Measure of distance within a dialog box ✓ Correct answer
- Name of a dialog
-
Neither the user nor the application can make the owner window active until the _______ is destroyed.
Topic: Dialog Boxes and Controls
- Modeless dialog box
- Modal dialog box ✓ Correct answer
- Child control
- All of the given
-
WM_INITDIALOG message is sent by the system:
Topic: Dialog Boxes and Controls
- Before creating the dialog
- Before creating dialog and after displaying it
- After creating and displaying the dialog
- After creating the dialog and before making it visible ✓ Correct answer
-
When a dialog box is created which one of the following messages is generated?
Topic: Dialog Boxes and Controls
- WM_CREATE
- WM_DIALOGCREATE
- WM_INITDIALOG ✓ Correct answer
- WM_COMMAND
-
Which function loads the specified menu resource from the executable (.exe) file associated with an application instance
Topic: Menus and Resources
- LoadMenu() ✓ Correct answer
- Load_Menu()
- Load_M()
- None of given
-
In which parameter of "CreateWindow" function, we can specify the Menu.
Topic: Menus and Resources
- hMenu ✓ Correct answer
- hInstance
- hWnd
- dialogBox
-
What is the file extension of the resource file?
Topic: Menus and Resources
- .rc ✓ Correct answer
- .cr
- .ico
- .txt
-
To retrieve the identifier of the menu item at a specified position, we can use the
Topic: Menus and Resources
- GetMenuItemID or GetMenuItemInfo function ✓ Correct answer
- Only GetMenuItemID function
- We have to use both GetMenuItemID and GetMenuItemInfo
- None of the given functions
-
__________, system sends the item's identifier to the owner window?
Topic: Menus and Resources
- When the user chooses a command item from a menu ✓ Correct answer
- When the system chooses a command item from a menu
- When the user click on any window area
- When the system de-select the item menu
-
Who generate a unique handle for each menu?
Topic: Menus and Resources
- System ✓ Correct answer
- User
- Dialog box
- Menu Items
-
____________ is a reserve word in resource file.
Topic: Menus and Resources
- Statement
- Cursor
- Bitmap
- Icon ✓ Correct answer
-
What does hmenu mean?
Topic: Menus and Resources
- Handle to window
- Handle to the menu ✓ Correct answer
- Handle to child window
- Handle to highest menu
-
Identify the function which is used to change an existing item of the menu at run time
Topic: Menus and Resources
- AppendMenu
- InsertMenu
- SetMenuItemInfo ✓ Correct answer
- ChangeMenu
-
A window receives this message when the user chooses a command from the window menu:
Topic: Menus and Resources
- WM_MENUSELECT
- WM_MENUDRAW
- WM_MENUNOTIFY
- WM_SYSCOMMAND ✓ Correct answer
-
If the LoadMenu function fails, what will be the return value?
Topic: Menus and Resources
- 0
- False
- Null ✓ Correct answer
- 1
-
If we pass the WS_CAPTION style to CreateWindow(), which style will be included automatically in it?
Topic: Menus and Resources
- WS_BORDER ✓ Correct answer
- WS_SYSMENU
- WS_CHILD
- WS_VISIBLE
-
Two types of Subclassing are:
Topic: Subclassing and Superclassing
- Automated Subclassing and Manual Subclassing
- Static Subclassing and Dynamic Subclassing
- Local Subclassing and Global Subclassing
- Instance Subclassing and Global Subclassing ✓ Correct answer
-
___________ defines a class that adds new functionality to a predefined Window class.
Topic: Subclassing and Superclassing
- Sub-Classing
- Coupling
- Super-Classing ✓ Correct answer
- None of given options
-
__________ handles user inputs and responds to user events independently.
Topic: Processes, Threads and Memory Management
- User-Interface Thread ✓ Correct answer
- Worker Thread
- Kernel Thread
- None of given options
-
________ determines that, which threads should run and when they should run?
Topic: Processes, Threads and Memory Management
- Scheduler ✓ Correct answer
- Thread itself
- Messages
- None of the given options
-
A _________ is commonly used to handle background tasks
Topic: Processes, Threads and Memory Management
- Worker thread ✓ Correct answer
- User Interface thread
- Parent thread
- Process thread
-
A thread cannot share all of its resources.
Topic: Processes, Threads and Memory Management
- True ✓ Correct answer
- False
-
To maximize the flexibility of the process's memory management system can moves pages of physical memory to and from a paging file on the disk.
Topic: Processes, Threads and Memory Management
- True ✓ Correct answer
- False
-
The size of pages depends on the host computer.
Topic: Processes, Threads and Memory Management
- True ✓ Correct answer
- False
-
Address Space of each process is organized in____.
Topic: Processes, Threads and Memory Management
- Pages ✓ Correct answer
- Page Map
- paging file
- Process Map
-
A disk file used to increase the amount of physical storage is known as _____.
Topic: Processes, Threads and Memory Management
- Fiber
- page map
- paging file ✓ Correct answer
- pages
-
What will happen if we use PostThreadMessage for a thread that does not have the messagequeue?
Topic: Processes, Threads and Memory Management
- Nothing will happen
- It will cause a run time error
- Thread will resume processing
- Its message queue will be created ✓ Correct answer
-
To create semaphore objects which function use by thread?
Topic: Processes, Threads and Memory Management
- CreateSemaphore() ✓ Correct answer
- CreateSemaobject()
- CreateObject()
- Create()
-
The total amount of storage available to all executing processes is the sum of the physical memory and the free space on disk available to the paging file.
Topic: Processes, Threads and Memory Management
- True ✓ Correct answer
- False
-
The Virtual Address Space of each process is much ____ then Physical memory.
Topic: Processes, Threads and Memory Management
- lower
- smaller
- little
- larger ✓ Correct answer
-
The System uses the Virtual Address Space From ____ to_____.
Topic: Processes, Threads and Memory Management
- 0x00000000 to 0x00000000
- 0x80000000 to 0xFFFFFFFF ✓ Correct answer
- 0x7FFFFFFF to 0xFFFFFFFF
- 0x00000000 to 0x7FFFFFFF
-
The process can use a space from ______ to _____.
Topic: Processes, Threads and Memory Management
- 0x00000000 to 0x00000000
- 0x00000000 to 0xFFFFFFFF
- 0x7FFFFFFF to 0xFFFFFFFF
- 0x00000000 to 0x7FFFFFFF ✓ Correct answer
-
The _____Translates the Virtual Address to Physical Address.
Topic: Processes, Threads and Memory Management
- Process
- Processor
- Operating System ✓ Correct answer
- Virtual System
-
A _____ is an internal data structure used to translate virtual address into corresponding physical addresses.
Topic: Processes, Threads and Memory Management
- Fiber
- Page Map ✓ Correct answer
- paging file
- pages
-
The Virtual Address used by a process represents the actual physical location of an object in memory.
Topic: Processes, Threads and Memory Management
- True
- False ✓ Correct answer
-
In 32bit MS Windows each _____ have its own Virtual Address Space.
Topic: Processes, Threads and Memory Management
- Process ✓ Correct answer
- Thread
- Fiber
- None of the Above
-
A thread can access only the virtual address space of a process that belongs to it.
Topic: Processes, Threads and Memory Management
- True ✓ Correct answer
- False
-
A _____ runs in the context of a thread.
Topic: Processes, Threads and Memory Management
- Process
- Thread
- Fiber ✓ Correct answer
- None of the Above
-
A _____ is a unit of execution that must be manually scheduled by the application.
Topic: Processes, Threads and Memory Management
- Process
- Thread
- Fiber ✓ Correct answer
- None of the Above
-
A ______ is the basic unit to which operating system allocates the processor time.
Topic: Processes, Threads and Memory Management
- Process
- Thread ✓ Correct answer
- Fiber
- None of the Above
-
One or more ____ can be run in the context of a process.
Topic: Processes, Threads and Memory Management
- Process
- Thread ✓ Correct answer
- Fiber
- None of the Above
-
A _______ is an executing program.
Topic: Processes, Threads and Memory Management
- Process ✓ Correct answer
- Thread
- Fiber
- None of the Above
-
In Windows every running application is a _____________.
Topic: Processes, Threads and Memory Management
- Pointer
- Process ✓ Correct answer
- Array
- List
-
All threads share the:
Topic: Processes, Threads and Memory Management
- Virtual Address space
- Global variables
- Operating system resources of their respective processes
- All of given options ✓ Correct answer
-
On which machines the scheduler can move individual threads to different processors to “balance” the CPU load.
Topic: Processes, Threads and Memory Management
- Miniprocessor
- Multiprocessor ✓ Correct answer
- Doubleprocessor
- None of given options
-
A process consists of __________
Topic: Processes, Threads and Memory Management
- one or more threads
- code
- data
- All of given options ✓ Correct answer
-
If bind function fails then what kind of error it will return.
Topic: DLLs, Sockets and Common Controls
- SOCKET_ERROR ✓ Correct answer
- SOCKET_FAILED
- INVALID_SOCKET
- None of the given
-
Consider the following statements written in a DLL: __declspec (dllexport) intFactorial(int); int Average(int, int); Which of the following statements is true about the above statements?
Topic: DLLs, Sockets and Common Controls
- Factorial() and Average() are 2 public functions of the DLL
- Average() is the only public functions of the DLL
- Factorial() is the only public functions of the DLL ✓ Correct answer
- This DLL does not have any public functions
-
Which one of the following operations is common to both client and server sockets:
Topic: DLLs, Sockets and Common Controls
- Bind
- Listen
- Accept
- Send ✓ Correct answer
-
RFC stands for:
Topic: DLLs, Sockets and Common Controls
- Request for comments ✓ Correct answer
- Request of connects
- Reference for connect
- Request for cancels
-
Copy-on-write protection is an optimization that allows multiple processes to map their virtual address spaces such that they share a physical page until one of the processes modifies the page. This definition belongs to which technique.
Topic: DLLs, Sockets and Common Controls
- Lazy evaluation ✓ Correct answer
- Fast evaluation
- Process evaluation
- None of the given
-
Windows common controls are implemented in
Topic: DLLs, Sockets and Common Controls
- Kernel32.dll
- Comctl32.dll ✓ Correct answer
- User32.dll
- Gdi32.dll
-
Child window is confined to its parent's client area only.
Topic: DLLs, Sockets and Common Controls
- True ✓ Correct answer
- False
-
TreeView control is created using:
Topic: DLLs, Sockets and Common Controls
- CreateWindow function
- CreateWindowEx function ✓ Correct answer
- CreateControl function
- None of the given options
-
We cannot convert the _______ into _________.
Topic: DLLs, Sockets and Common Controls
- Screen co-ordinates, client area co-ordinates
- Client area co-ordinates, screen co-ordinates
- Non-Client area co-ordinates, screen co-ordinates ✓ Correct answer
- Screen co-ordinates, non-client area co-ordinates
-
Whenever a window is resized, system sends "WM_SIZING" message to the application that owns the window
Topic: DLLs, Sockets and Common Controls
- True ✓ Correct answer
- False