Cs609 Mid term updated Quiz File by VuCopier
1. hich of the following tasks is not performed by the operating system.
v Multitasking
v Memory Management
v File Management
v Hardware repairing
2. Windows operating system allows us to run a huge process in a small memory space due to
v Efficient primary memory management
v Flexibility naming scheme for resources
v High processing speed of processor
v Virtual memory management
3. To provide an interface between the user and computer, a system is required which is called
v Application software
v Operating system
v Customized software
v Both application and customized software
4. A process-1 in windows operating system can access the momery space of process-2 if
v Process-1 has no privilege to access memory space of other processes
v Both processes have same ID
v Process-1 loaded in the same space as process-2
v Process-1 has privilege to access memory space of other processes.
5. Windows operating system provides a naming scheme for the resources which allows maximum character only
v 255
v 16
v 55
v 155
6. DOS was a operating system.
v GUI based
v Command line
v Real time
v Multitasking
7. API stands for .
v Application programming interface
v Advance programming interface
v Application programming integrity
v Application programs interoperability.
8. Which operating system was offered by Microsoft that was used prior to windows
v LINUX
v UNIX
v Solaris
v Dos
9. Which of the following theme is not consider while introducing the new version of windows.
v Enhanced API
v Scalability
v Performance
v Increasing cost
10. Which version of windows is used for mobile devices
v Windows ME
v Windows CE
v Windows vista
v Windows server
11. In 2021, which of the following desktop operating systems was widely used in the world market?
v Windows
v Fedora
v Salaris
v Linux
12. Using commands can be issued to the system through icons, buttons, shortcuts, sound etc
v Result- driven interface
v Graphical user interface
v Menu-driven interface only
v Command only
13. One of the major causes of windows dominance in PC’s market is its
v User-friendly GUI
v Best security features
v Feature of multitasking
v Best marketing strategy
14. Which statement is not correct about the windows operating system
v It can only be used in desktop system
v It supports both 32&64-bit architecture
v It supports voice commands
v It supports diverse hardware platforms
15. Which statement is incorrect about open source software?
v Paid license is required for it use
v Changes can be made by the general public
v Source code is freely available
v It is publicly available
16. Choose the major drawback of a closed source software
v Not affordable by the user
v Not customizable
v Not freely available to download
v Neither affordable, customizable, nor freely available for download
17. Example of a closed source software is
v Linux
v Windows OS
v Chrome browser
v Fedora
18. A uniform extension is software components is possible in
software.
v Vender specific
v Open source
v Community source
v Both open and closed
19. A socket on end-point is required only if
v Processor tries to write on internal hard disk
v Two processes communication over network
v A process needs a resource
v Process needs to access main memory
20. DWORD data type represents
v 32 bit unsigned integer
v 32 bit signed integer
v 16 bit unsigned integer
v 16 bit signed integer
21. A software or application can access any windows object
v Directly
v Directly and through API as well
v Through API only
v Not directly nor through API
22. Windows datatype LPTSTR
v Long pointer to TSTR
v Last pointer to TSTR
v Last pointer to string
v Long pointer to STR
23. Each windows API has a number of parameters.
v Fixed
v Two
v Variable
v Four
24. Which statement is true about a multi- threading process?
v A process has one or more threads
v A process has only one thread
v A thread has only one process
v A thread can be created without process
25. Windows supports both the 32 and 64-bit source code by
v Keeping separate API’s for 32 and 64-bit code
v Converting 32-bit into 64-bit code
v Converting 64-bit into 32-bit code
v Keeping separate compilers for each hardware
26. Windows operating system keeps version of each API
v Two
v One
v Complied
v Interpreted
27. Which statement is incorrect about the 32-bit source code?
v It runs on 64-bit hardware and can use its all features
v It has its own windows API
v It does not support large disk space
v It runs on 64-bit hardware
28. Choose the appropriate advantage of C source code that uses C standard function
v Can access advance windows features
v Portable source code
v Runs on windows platform only
v Runs without making system calls to windows API’s.
29. Choose the correct option for a source code that uses only windows API instead of C library functions.
v Source code can only access some features of windows
v Source code will not remain portable
v Source code cannot be complied
v Source code is portable
30. Which statement is true about open () function in C?
v It opens the existing file and not exists it creats a new file
v It opens the file only writing
v It opens the file only reading
v It opens the file only existing
31. fopen() function in C returns if the file is not successfully opened
v Zero value
v Point to a file
v NULL value
v Neither NULL nor Zero
32. Open file objects using C library functions are identified by
v Pointer to a file structure
v Buffer
v Handle
v Both buffer and handle
33. A successfully read using fread() function in C is indicated by a
return value.
v Non-negative
v Zero
v Negative
v Boolean
34. What the following C statement represents; FILE *ptr;
v Pointer to a file structure
v Pointer to a character
v Pointer to a integer
v Pointer to a binary number
35. Which statement is true about createfile() function
v DWORD
v BOOL
v HANDLE
v INT
36. The return type of readfile() and writefile() is
v It open the existing file or creating a new file
v It is not used for opening a file
v It opens or create a file only for generic read
v It open or create a file only for generic write
37. LPWSTR stand for
v Last pointer to wide string
v Long pointer to wind string
v Long pointer with string
v Last pointer to string
38. The return type of malloc() function in C can be
v Pointer to allocate space or NULL
v Linked list
v NULL only
v A array
39. Which statement is correct about the convenience function?
v It does not improve overall performance
v It takes considerable time in execution
v It performs a small task
v A big task is performed a single API
40. UDF stands for
v Universal driven format
v Universal disk file
v Universal driven file
v Universal disk format
41. Which option is not related to the NT file system
v Compression
v Encryption
v File size limitation
v Fault tolerance
42. Which feature of NTFS related to data security?
v Large file name mechanism
v Encryption
v File allocation table
v Compression
43. Keeping in view the support for huge fole size, which file system is more favorable?
v NTFS
v FAT16
v FAT32
v FAT8
44. NTFS stand for
v New trend file system
v New technology file system
v New trend for system
v New technology for system
45. Which special symbol can be used in windows filename?
v Pipe
v Forward slash
v Backward slash
v Underscore
46. The path name of a remote resource of server starts with
symbol.
v Forward slash
v Pipe
v Double back slash
v Black slash
47. In the windows file system, which symbol can be used as a path separator?
v Pipe symbol
v Back slash only
v Both forward and backward
v Forward slash only
48. The file extension usually contains characters.
v 5 to 8
v 2 to 4
v 1 to 2
v 1 to 3
49. In windows file system, the extension and file name is separated by
.
v |
v Dot(.)
v \
v /
50. The name of windows API used for opening and creating a new file is
v CreateFile()
v OpenFile()
v CreateopenFile()
v ReopenFile()
51. The return type of create file() function is.
v NULL
v A handle to an open file or INVALID_HANDLE_VALUE
v INVALID_HANDLE_VALUE
v Always handle to run open file object
52. In FILE_SHARE_READ mode, the file is shared for
v Concurrent read and write by multiple process
v Concurrent read and write by a single process
v Concurrent read by single process
v Concurrent read by multiple process
53. In the createfile() function, if the same name file already exists when the attributes, create, Always is used to
v Delete the existing file and create a new file
v Delete the existing file
v Over write an existing file
v Create an existing file
54. In the createFile() function, which statement is true about open- existing attribute if the file does not exist.
v It will create an existing file
v It will open some other file insteated of specified file
v It will fail to open the new file
v It will create a new file
55. The windows API used to read data from a file and store it in a buffer.
v Create File()
v Copy file()
v Read file()
v Write file()
56. If the file is not opened in concurrent mode, then ReadFile() API. ReadFile()API starts reading from the
v Backup file
v Start file
v End of file
v Current file
57. If we want to read 1000 bytes from a file with ReadFile() function but there are actually only 400 bytes in a file then
v Read operation will fail
v 400 bytes will be read
v 1000 bytes will be read
v Exception will be thrown
58. The windows API is used to write data from a better and store it in a file
v Create file
v Copy file
v Read file
v Write file
59. The return type of writeFile() function is
v BOOL
v DWORD
v LPDWORD
v LPOVERLAPPED
60. It an invalid file handle is passed as a parameter to the closeFile() function, then it will return
v 1
v Empty string
v File handle
v False value
61. A Unicode word consists of bits
v 24
v 32
v 16
v 8
62. In Unicode formate, number of character can be encoded.
v 210
v 28
v 232
v 216
63. The latest version of windows supports standard.
v ASCII
v Unicode
v Scan codes
v Both ASCII and Unicode
64. TCHAR is a/ an type variable.
v ASCII
v Generic
v Unicode
v Both ASCII and Unicode
65. _stprintf() is a/ an c library function.
v Both ASCII and Unicode
v Generic
v Unicode
v ASCII
66. _tcscmp() is function to compare the string
v An ASCII
v A Unicode
v Not a generic
v A generic
67. Which one is the correct definition of generic main() function?
v Int-main
v Int main
v Int main
v Int_main
68. All generic data types are include header file.
v <tchar.h>
v <string.h>
v <windows.h>
v <char.h>
69. All generic functions are include in header file
v <string.h>
v <windows.h>
v <char.h>
v <tchar.h>
70. TextOutW() is bit API and it supports standard.
v 32,Generic
v 32,ASCII
v 32,Unicode
v 16,Unicode
71. The standard C library function atio() supports
v Generic code
v Unicode
v 128-bit character code
v 8-bit character code
72. To switch between 8-bit character code and standard Unicode
functions and data type are required.
v Generic
v Non-generic
v Unicode
v 8-bit
73. Developing generic code needs extra effort but provides maximum
![]() |
v Productivity
v User-friendly look
v Chance of errors
v Flexibility
74. What is the return value of GetlastError() function?
v It returns error code for last error
v It return a formatted message for last error
v It takes input message from user and returns
v It return error message for the last error
75. Which windows API is used to return a system error code?
v Geterror()
v Format message ()
v Get last error()
v Both geterror() and format Message()
76. Which header file includes all the Unicode macros for setting environment of a program?
v <everything.h>
v <environment.h>
v <tchar.h>
v <windows.h>
77. There are system.
v Five
v Three
v Two
v Four
number of standard I/O devices in a windows
78. In a windows system, input and are three standard I/O devices.
v Error, correction
v Output, display
v Display, error
v Output, error
79. On execution, HANDLE_GetstHandle(DWORDnst Handle) will return a valid handle in case of
v Passing invalid parameters
v Success
v Exception
v Failure
80. STD_INPUT_HANDLE macro contains a variable, CONIN$,which is a/an .
v Input variable
v Default variable
v Environment variable
v Console variable
81. STD_OUTPUT_HANDLE contains
variable.
v CONIN$
v CONOUT$
v CONPRNT$
v CONDIS$
82. Option () function takes parameters.
v 3
v 4
v 5
v Variable
83. Catfile() function takes parameters.
v 3
v 5
v 4
v 2
as an environment
84. empire is considered to be pioneers of encryption as they used basic encryption algorithms to encrypt secret conversation in a war.
v Persian
v Chines
v Roman
v Mughal
85. Roman empire use algorithm to encrypt secret conversation.
v CTR
v Ceaser cipher
v Brute force
v Cryto graph
86. The text that we are going to encrypt is called test so it is denoted by
v Personal, p
v Secret, w
v Proposed, p
v Plain, p
87. We represent that text by the symbol in the encryption formula.
v E
v B
v A
v C
88. The formula of ceaser chopper is
v C = (E + W)mod26
v E = (P +n) mod27
v E = (D +n)mod27
v C = (P + n) mod26
89. We use MoveFileEx() to the existing file
v Copy
v Rename
v Over write
v Delete
90. Which statement is true about hard copy function?
v Both the files must not be on same system volume.
v Both the files must be in encrypted form
v Creates a hard link for copy file
v Security attributes will apply on new file name
91. deleteFile() function takes parameter.
v 4
v 1
v 2
v 3
92. Which of the following API is used for coping a file?
v CopyFile(LPCTSTRIPExistingFileName,LPCTSTR IPNewFileName, bool bfailExists);
v Char CopyFile(LPCTSTRIPExistingFileName,LPCTSTR IPNewFileName, bool bfailExists);
v Bool CopyFile(LPCTSTRIPExistingFileName,LPCTSTR IPNewFileName, bool bfailExists);
v String CopyFile(LPCTSTRIPExistingFileName,LPCTSTR IPNewFileName, bool bfailExists);
93. Correct syntax of MoveFile() function is
v Bool Move (LIPCTSTR lpNewName, LPCTSTR lpExistingFileName);
v Bool Move (LIPCTSTR lpNewName, LPCTSTR lpNewFileName);
v Bool MoveFile (bool LIPCTSTR lpNewName, LPCTSTR lpExistingFileName);
v Bool Move (bool lpNewName, LIPCTSTR LPCTSTR lpExistingFileName);
94. RemoveDirectory() function takes parameter(s)
v 1
v 4
v 3
v 2
95. Set currentDirectory() function takes parameter(s)
v 2
v 1
v 4
v 3
96. Return type of GetcurrentDirectory() function is ()
v Int
v Bool
v String
v DWORD
97. createDirectory() function takes parameter(s)
v 4
v 3
v 1
v 2
98. deleteFiles() function takes parameter(s)
v 1
v 4
v 3
v 2
99. Return type of printMsg() function is
v DWORD
v CHAR
v BOOL
v WORD
100. Return type of printString() function is
v DWORD
v CHAR
v BOOL
v WORD
101. Correct syntax for create console input file is
v hln = createFile(_T(“CONOUT$”), GENERIC_READ&NULL, OPEN_ALWAYS, FILE_ATTRIBURT_NORMALNULL);
v hln = createFile(_T(“CONOUT$”), GENERIC_READ,1 GENERIC_WRITE,0&NULL, OPEN_ALWAYS, FILE_ATTRIBURT_NORMALNULL);
v hln = createFile(_T(“CONIN$”), GENERIC_READ,1 GENERIC_WRITE,0&NULL, OPEN_ALWAYS, FILE_ATTRIBURT_NORMALNULL);
v prohln = createFile(_T(“CONIN$”), GENERIC_READ,1 GENERIC_WRITE,0&NULL, OPEN_ALWAYS, FILE_ATTRIBURT_NORMALNULL);
102. consoleprompt() function takes parameter(s)
v 2
v 3
v 5
v 4
103. Current syntax of Get currentDirectort() function is
v lencurDir =GetcurrentDirectory(DIRNAME_LEN,PwdBuffer);
v lencurDir =GetcurrentDirectory(DIRNAME_LEN);
v lencurDir =GetcurrentDirectory(DIRNAME_LEN);
v lencurDir =GetcurrentDirectory(PwdBuffer);
104. Get currentDirectory() function takes parameter(s)
v 2
v 3
v 5
v 4
105. Return type of prontMsg() function is
v WORD
v BOOL
v CHAR
v DWORD
106. Get Directory() function takes parameter(s)
v 2
v 3
v 5
v 4
107. In NTPS based system is the maximum allowed size for a single file
v 28
v 232
v 216
v 264
108. FAT 32 based system is the maximum allowed size for a single file
v 28
v 232
v 216
v 264
109. setFilepointer() function takes parameter(s)
v 2
v 3
v 5
v 4
110. PLONG is a
v Pointer to a long variable
v String
v Variable
v Pointer to a string
111. Return type of setFilePointerEx() is
v String
v Bool
v Word
v DWORD
112. In setfilepointer() function, lpNewFilePointer parameter is placed is a/an
v Handle
v PLARGE_INTEGER
v DWORD
v LARGE_INTEGER
113. In setFilePoiter() function, distance to move parameter is placed in
v DWORD
v Handle
v PLARGE_INTEGER
v LARGE_INTEGER
114. There are components of a LARGE integer
v 2
v 3
v 4
v 5
115. In the Overlapped structure, ULONG_PTR internal is a
field.
v DWORD
v Integer
v Pointer
v Reserved
116. Overlap structure is a structure which is defined in the
header file
v Window.h
v Stdary.h
v Everything.h
v Stdio.h
117. In the overlapped structure the data type of ofsetand offsethigh is
v DWORD
v WORD
v INT
v BOOL
118. EOF is short form of
v Erase of file
v End of file
v End of folder
v Erase of folder
119. Return types of getfilesizeEx() is
v Bool
v Char
v Int
v DWORD
120. To reduce the filesize we use windows API.
v Setfilesize()
v Changefilesize()
v SetendoffileEx()
v setfileEx()
121. File size cn be obtained using the windows API.
v GetFileSizwEx()
v FileSizeExGet()
v GetFileSize()
v FileSize()
122. In the RECORD structure, datatype of numRecord is
v DWORD
v BOOL
v Double
v Int
123. In the RECORD structure, datatype of numNonemptyRecord is
v DWORD
v BOOL
v Double
v Int
124. What will be next code statement, if the following if statement id true? If (!setFilePointer Ex(nfilecurrentptr, NULL,FILE_BEGIN))
v RepotError(_T(“RecordAccessError: writeFile header”.)4,TRUE);
v RepotError(_T(“RecordAccessError: writeFile header”.)6,TRUE);
v RepotError(_T(“RecordAccessError: setpointer”.)4,TRUE);
v RepotError(_T(“RecordAccessError: set End of File”.)5,TRUE);
125. What will be next code statement, if the following if statement is true? If (!readFile(hFile& header, size of(Header),&nXfer,&ovzero))
v ReportError (_T(“RecordAccessError:set End of File.”),5,TRUE);
v ReportError (_T(“RecordAccessError:set pointer.”),4,TRUE);
v ReportError (_T(“RecordAccessError:write File header.”),4,TRUE);
v ReportError (_T(“RecordAccessError:readFile header.”),6,TRUE);
126. During searching files/folders, a data structure is used to store the information about a found file or directory
v Directory -64
v Attribute
v Directory -32
v WIN32_FIND DATA
127. What will be next code statement, if the following if statement is true? If (!writeFile(hFile& header, size of(Header),&nXfer,&ovzero))
v ReportError (_T(“RecordAccessError:set End of header.”),6,TRUE);
v ReportError (_T(“RecordAccessError:set pointer.”),4,TRUE);
v ReportError (_T(“RecordAccessError:write File header.”),5,TRUE);
v ReportError (_T(“RecordAccessError:readFile header.”),4,TRUE);
128. The number of arguments required for Findclose()API is
![]() |
v 3
v 1
v 2
v 0
129. The field flastAccessTime in a WIN32-FIND-DATA structure is used to represent a time when a file was time accessed
v Closing
v Last
v First
v Second ;last
130. Using GetFileTime() API argument(s) is/are provided.
v Both creation and last access time
v Only last access time
v Creation, last access and last write time
v Only creation time
131. GetFileAttribute() API need argument(s) to return the attributes of a file or directory
v 1
v 2
v 3
v 0
132. compareFileTime() API returns if both the file time are equal
v 0
v 2
v 1
v -1
133. Which option is incorrect when the traverseDirectory() API is required to be use?
v It allow non-recutsive traversal
v Recursive and non-recursive traversal option is irrelevant
v It allows recursive traversal
v It allows both non- recursive and recursive traversal
134. Which of the followingis not an argument of the traverse Directory() API
v Option for simple listing or recursive processing
v Search pattern
v Parent path
v File creation time
135. Temporary files are assigned an extension and they are used to store
v .temp,final result
v .tmpe,intermediate result
v .tmp,intermediate result
v .com,intermediate result
136. is not a value argument for setFiletime() function
v pModifyTime
v NULL
v _T(ame)
v _P(accesstime)
137. SetFileTime() function takes a total of arguments.
v 3
v 5
v 4
v 2
138. GetsystemTimeAsFiletime() function receive as an argument.
v File array
v File pointer
v File handle
v File objects
139. Which of the following is not a correct argument of options() function
v Argc
v Argv
v _T(amg)
v _T(amc)
140. The fseek() C library function uses bit file position
v 8
v 16
v 32
v 64
141. For file processing windows provides a propriating function called
v Pseek64()
v Fseek()
v Fseek64()
v Pseek()
142. In MicrosoftUNIX library, all I/O function are named with
prefix.
v Semicolon
v Dot
v Underscore
v Colon
143. In lockFileEx() function, the OVERLAPPED data structure contains data members.
v 3
v 5
v 2
v 4
144. File lock can be or
v Read-only, write-only
v Read-only, write-only
v Read-locked, write only
v Read-only, read-write
145. The read operation does not conflict with the
v Existing shared lock
v Remove operation
v Write operation
v Existing exclusive lock
146. Before encountering a/an lock, the read or write operation can complete its request partially
v Exclusive lock
v Shared lock
v Mutually exclusive lock
v Conflicting lock
147. If process-A has a shared lock on a file, and process-B tries to read without a shared lock then the read attempt will
v Return exception
v Succeed
v Return a shared lock
v Fail
148. UNIX system stores information in directory similar to the registry entry
v /etc
v /reg
v /key
v /root
149. Programmers usually access windows build number through
![]() |
v Web sockets
v Web API
v RESI API
v Windows API
150. Information about is not present in the registry file.
v Power supply
v Chipset
v Memory
v Processor
151. information is present in the registry HKEY_CURRENT_CINFIG.
v Display resolution
v Process make
v Display size
v Memory amount
152. The registry HKEY_CURRENT_USER does not contain
information.
v System fonts
v Printers
v Environment variable
v Application preferences
153. The registry HKEY_LOCAL_MACHNE stores
information about the machine
v Physical
v Private
v Protected
v Logical
154. function enumerates subkey names of an open
registry key.
v RegEnumKey()
v RegOpenKey()
v RegOpenKeyEx()
v RegENUMKeyEx()
155. The RegOpenKeyEx() function opens a named
v Instance
v Sub key
v Key
v List
156. The function RegCreateKeyEx() ha parameters.
v 8
v 7
v 9
v 6
157. Is Reg() function processes registry keys rather than
and
v Key-value pairs, files
v Key-value pairs, properties
v Directories, key-value pairs
v Directories, files
158. RegSetvalueEx() function is used to set the data of a
value.
v Final
v Fixed
v Named
v Static
159. The exception could occur within a embedded in the try block.
v List
v Function
v Constructor
v Block
160. If filter_expression returns then windows ignores the exception handler and searches for an exception handler in the enclosing block.
v EXCEPTION_SKIP_EXECUTION
v EXCEPTION_CONTINUE_SEARCH
v EXCEPTION_CONTINUE_EXECUTION
v EXCEPTION_SKIP_SEARCH
161. If the filter-expression was set to continue the execution but it is not possible to continue, then exception code will be returned.
v EXECUTION-NONCONTINUABLE-EXCEPTION
v EXECUTION-NONCONTINUABLE-EXECUTION
v EXECPTION-NONCONTINUABLE-EXCEPTION
v EXECPTION-NONCONTINUABLE-EXCUTION
162. exception code is returned if the process attempts to read or write a virtual address for which it has no access rights
v EXCEPTION-INTEGERS-VOILATION
v EXCEPTION-INTEGERS-BREACH
v EXCEPTION-ACCESS-VOILATION
v EXCEPTION-INTEGERS-BREACH
163. SHE is not supported through
v Run time support
v Windows function
v Compiler supported language extensions
v Windows registry
164. The filter-expression in the clause is evaluated immediately after the exception occurs.
v -try
v -catch
v -except
v -finaly
165. The value of the determine actions that follow
v Filter-except
v Filter-expression
v Filter-try
v Filter-search
166. function is used to clear the floating-point exception after it is processed.
v _clear()
v _clearfp()
v _clean()
v _cls()
167. Programs can raise their own exception using the function
v BuildException
v RaiseException
v Createexception
v GenException
168. RaiseException has parameters.
v 4
v 2
v 5
v 3
169. The exception handler is actually a code portion associated with block.
v -finally
v -try
v -except
v -catch
170. The new value of floating point mask is determined by its value and its two arguments.
v Current-value
v C-value
v Current-mask
v Current-val
171. The function terminates the process if the program indicates that the error is fatal.
v Report handle()
v Terminate handle()
v Terminate process()
v Report error()
172. SIGSEGV error can only be generated bt but not by
![]() |
v Windows, Raise
v Linux, macos
v Windows, linux
v Raise windows
173. A single try block must have a single or block
v Terminate, Except
v Finally, Except
v Finally, continue
v Terminate, finally
174. function is used within the termination handle to check how the try block is terminated
v Check termination()
v Check handle()
v Check termination
v Abnormal termination
175. ReportException() function have arguments.
v 3
v 4
v 2
v 5
176. Second arguments of ReportException()function is
v Exception code
v Exception handle
v Exception address
v Exception name
177. The process or thread can terminate itself using or
functions.
v Terminate process(), Exist thread()
v Terminate process(), Terminate thread()
v Exist process(), Exist thread()
v Exist thread(), Terminate thread()
178. The termination handler cannot execute the statement
v Break
v Report
v Continue
v Retur
179. C ++ execution handling is implemented using
v SCH
v ECH
v ESH
v SEH
180. A filter function the type of n exception.
v Restrick
v Evaluates
v Exclude
v Identifies
181. The exception are enabled with the help of controlfp() function
v Floating point
v String
v Mutex
v Integer
182. ecategory is a/an
v Reference variable
v Simple variable
v Class
v Pointer
183. Which of the following in the number of parameters takes by controlpf() function
v 3
v 4
v 1
v 2
184. Which of the following in the number of parameters takes by filter function
v 1
v 2
v 3
v 4
185. Which of the following instruction is used to suspend the execution of a program for 5 milliseconds?
v Sleep(500)
v Sleep(5000)
v Sleep(5)
v Sleep(0.5)
186. Which of the following functions is used to generate a sound beep for 0.7 seconds with the frequency if 750?
v Beep (750,800)
v Beep(700,750)
v Beep(750,700)
v Beep(750,0.7)
187. A program can be terminated by passing from keyboard
v Ctrl +p
v Ctrl +N
v Ctrl +C
v Ctrl +Z
188. The return type of WINAPI Handler() function if
v Void
v Static integer
v Static bool
v Static float
189. #include<io.h> is used for
v Input output operation
v Working in CLI
v Memory allocation
v Multitasking
190. Windows OS keeps version of each API.
v One
v Interpreted
v Two
v Complier
191. The options function have arguments
v 5
v 4
v 7
v 6
192. If invalid file handle is passed as a parameter to the closeFile API, then it will return
v Empty string
v 1
v File handle
v False value
193. stcrcmp() is function to compare the strings.
v A generic
v An ASCII
v Not a generic
v A Unicode
194. A standard C library function atoi() supports code.
v 8-bit or Unicode
v Generic code
v Unicode only
v 8-bit only
195. There are number of standard input out devices.
v 3
v 5
v 4
v 2
196. Every lockfileEx() function that is successful must be followed by a call to
v DeletelockEx()
v RemovelockEx()
v UnlatchlockEx()
v UnclockfileEx()
197. Try and catch keywords required for vectored exception handlers.
v Are not
v Are
v Must be
v Are accasionally
198. In the context of vectored exception handling the zero value of firsthandler parameters shows that the handler being used wil be the one to execute.
v Third
v Last
v Second
v First
199. In the vectored exception handler, the value of firsthandler parameter specific the in which the handler will execute.
v Order
v Speed
v Allocation of stack
v Accuracy
200. Windows checks for a vectored exception handler at the
place when a vectored is set up followed by unwinding the stack.
v Second
v Third
v First
v Fourth
201. In the context of vectored exception handling the non-zero value of firsthandler parameters shows that the handler being used wil be the one to execute.
v Third
v Last
v Second
v First
202. Which of the following is a dynamic data structure
v Circular array
v Array
v Tree
v Union
203. Identify the advantages provided by memory mapped files.
v Convenience, collision, octection and memory sharing
v Exception handling, speed and memory sharing
v Convenience, speed and usability
v Convenience, speed and memory sharing
204. Windows mainly uses API.
v 4
v 2
v 3
v 1
205. In win32 of the virtual space is accessible to a process and the remaining space is utilize by the system for other tasks
v One quarter
v Half
v Two third
v Three quarter
206. The virtual space of process be larger than the physical memory space.
v Should always
v Cannot
v Must
v May
207. Which of the following occurs as a result of excessive page fault in
v Decreased system performance
v Increased utilization of I/O ports
v Decreased utilization of I/O ports
v Increased system performance
208. When the required page is not in the memory then a
occurs.
v Page fault
v Dirty frame
v Page error
v Frame fault
209. The translation of a virtual address int physical address is managed by the
v Offset addressing
v Operating system
v Device driver
v Transport layers
210. Pages are swapped in and out when a occurs.
v Page fault
v Frame fault
v Page error
v Dirty frame
211. Which of the following is a dynamic data structure.
v Circular array
v Tree
v Union
v Array
212. A process can have heap(s).
v Only once
v Only two
v Many
v At the most two
213. When a fixed size data structure is allocated from a single heap, it reduces
v Fragmentation
v Errors
v Memory density
v Throughput
214. The heapReAlloc() API has parameter(s).
v 4
v 1
v 3
v 2
215. The heapAlloc() API has parameter(s).
v 4
v 2
v 1
216. When a heap (logical structure) is created the memory is
allocated at the program.
v Partially
v Completely
v Not directly
v Directly
217. are the APIs for heap memory allocation.
v Heapcreate ()and HeapRealloc()
v Allocheap () and HeapRealloc()
v HeapAlloc() and HeapRealloc()
v HeapAlloc() and HeapRealloc()
218. For a non growable heap, the value of dwbytes in heap memory alloction is
v 0*7FEE8
v 0*7FDD8
v 0*AAAA8
v 0*7FFF8
219. is the first step tp allocate heap in a program.
v HeapDestroy()
v HeapFree()
v Release and handle
v Get heap handle
220. The function heapSize() returns the size oa a block, or
in case failure.
v NULL
v -1
v 0
221. is used to deallocate the entire heap.
v HeapDestroy()
v HeapFree()
v HeapTruncate()
v HeapDelete()
222. Sorting is performed in the
v RootHeap
v RecHeap
v ProcHeap
v NodHeap
223. stores the root address.
v RootHeap
v RecHeap
v ProcHeap
v NodHeap
v
224. The NodeHeap maintains a
v Data
v Data structure
v Record
v Root
v NodeHEap BOTH ANSWER CORRECT
225. There are parameters taken by the HeapCreate() API.
v 3
v 4
v 2
226. Which of the following is the correct windows API for accessing heap?
v INT GetProcessHeap(VOID)
v VOID GetProcessHeap(HANDLE)
v HANDLE GetProcessHeap(VOID)
v INT*GetProcessHeap(VOID)
227. When a fixed size data structure is allocated from a single heap, it reduces
v Memory density
v Errors
v Throughput
v Fragmentation
228. The parameters “flOption” in the HeapCreate() API is a combination of flafs.
v 1
v 2
v 4
v 3
229. In order to make a program more efficient, heap(s) may be required
v Several
v Only one
v Partial
v Minimum number of
230. While using CreateFileMapping(), allow the mapping object to be secured.
v INVALID_VALUES
v PSECURITY_ATTRIBUTES
v LPSECURITY_ATTRIBUTES
v INVALID_HANDLE_VALUES
231. While using CreateFileMapping(), refers to the paging file.
v INVALID_VALUES
v PSECURITY_ATTRIBUTES
v LPSECURITY_ATTRIBUTES
v INVALID_HANDLE_VALUES
232. While using CreateFileMapping(),setting lpMapName to
disables the map sharing.
v -1
v NULL
v 0
v 1
233. is the API for file mapping objects.
v Create_File_Mapping()
v CreateFileMapping()
v FileCreateMapping()
v MakeFileMapping()
234. Which of the following are the number of parameters taken by CreateFileMapping()?
v 7
v 6
v 5
v 4
235. Console control handlers are quite similar to
v Function
v Parameter
v Interrupt
v Exception Handlers
236. If threads have separate memory space, then it will reduce
![]() |
v Direct Memory access
v Memory Density
v Access speed
v Memory Contention
237. API is used to create a new heap.
v HeapCreate()
v NewHeap()
v CreateHeap()
v BuidlHeap
238. SEH is not supported through
v Window Registry
v Run-Time Support
v Compiler Supported Language Extensions
v WindowsFunction
239. Serialization is necessary when concurrent threads use
resource(s).
v ETRA
v The remaining
v Different
v A common
240. In order to deallocate a block of heap, is used.
v HeapDelet()
v Heap Turnicate()
v HeapDestroy()
v HeapFree()