MCQ Bank
The termination handler cannot execute the _______________ statement.
- A) Break
- B) Report
- C) Continue
- D) Return
In case of _________ linking the DLL attaches at the time of process start and detaches when process ends.
- A) Explicit
- B) None of the given
- C) Dynamic
- D) Implicit
C++ Exception handling is implemented using _____________.
- A) ECH
- B) ESH
- C) SCH
- D) SEH
qsort() is a _____________ function.
- A) User defined
- B) Windows DLL
- C) EXE
- D) Standard library
How is the linking of functions in DLLs different from monolithic programs?
- A) Functions are linked at runtime only
- B) Functions are linked at program load time or run time
- C) Functions are linked at build time
- D) Functions are not linked at all
There are _____________ parameters taken by the HeapSize() API.
- A) 1
- B) 3
- C) 2
- D) 4
Total number of files inputted, can be get with_____
- A) argc
- B) argc-1
- C) argc-3
- D) argc-2
Using the critical section construct is ___________and intuitive.
- A) Short
- B) Easy
- C) difficult
- D) Long
In the get a Job Number the function looks into the file for a vacant place. If no place is available, it appends a new record at the _________ of the file.
- A) Next
- B) Start
- C) Middle
- D) End
CreateThread() API has ________ parameters.
- A) 2
- B) 6
- C) 8
- D) 4
Thread Ids and handles can be obtained using functions quite similar to the ones used with _______________ .
- A) Objects
- B) Programs
- C) Processes
- D) Threads
In getting a lob number, the Job Management Shell uses a number of job management functions to manage jobs information within the ___________ file.
- A) Process
- B) Shell
- C) System
- D) User
Like every other resource, threads are also treated as ___________.
- A) Thread
- B) Program
- C) Objects
- D) Code
Which of the following function can be used to map the process with thread?
- A) GetProcessIdOfThread()
- B) DWORD SuspendThread (HANDLE hThread)
- C) DWORD ResumeThread (HANDLE hThread)
- D) GetThreadIOPendingFlag()
In Listing Background Jobs the job management function used for the purpose is DisplayJobs(). The function _______ the file.
- A) Run
- B) Process
- C) Opens
- D) Start
Why a file does is mapped before accessing it?
- A) To reuse it any time
- B) To make it secure
- C) To access it in the form of LinkedList
- D) To access it in the form of memory
: ______________ variables should not be accessible globally.
- A) String
- B) Integer
- C) Locally required
- D) Long
Terminating the(an) ____________ process(es) can be problematic as the terminating process does not get a chance to release resources.
- A) Parallel
- B) Same
- C) Another
- D) Series
Volatile stage is a __________________ level facility.
- A) Compiler
- B) Programmer
- C) BIOS
- D) Hardware
Which Windows threading functions are used for creating and exiting threads, respectively, in the absence of C Library threading functions?
- A) CreateThread() and ExitThread()
- B) WindowsThread() and CreateThreadSafe()
- C) LIBCMT() and TerminateThread()
- D) _beginthreadex() and _endthreadex()