In the name of ALLAH, the Most Beneficent, the Most Merciful

Cs609 Mid term updated Quiz File by VuCopier

Cs609 Mid term updated Quiz File by VuCopier

  

 
Cs609 Mid term updated Quiz File by VuCopier 

 

1. hich of the following tasks is not performed by the operating system.

Multitasking

Memory Management

File Management

Hardware repairing

2. Windows operating system allows us to run a huge process in a small memory space due to

Efficient primary memory management

Flexibility naming scheme for resources

High processing speed of processor

Virtual memory management

3. To provide an interface between the user and computer, a system is required which is called

Application software

Operating system

Customized software

Both application and customized software

4. A process-1 in windows operating system can access the momery space of process-2 if

Process-1 has no privilege to access memory space of other processes

Both processes have same ID

Process-1 loaded in the same space as process-2

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


255

16

55

155

6. DOS was a operating system.

GUI based

Command line

Real time

Multitasking

7. API stands for .

Application programming interface

Advance programming interface

Application programming integrity

Application programs interoperability.

8. Which operating system was offered by Microsoft that was used prior to windows

LINUX

UNIX

Solaris

Dos

9. Which of the following theme is not consider while introducing the new version of windows.

Enhanced API

Scalability

Performance

Increasing cost

10. Which version of windows is used for mobile devices

Windows ME

Windows CE


Windows vista

Windows server

11. In 2021, which of the following desktop operating systems was widely used in the world market?

Windows

Fedora

Salaris

Linux

12. Using commands can be issued to the system through icons, buttons, shortcuts, sound etc

Result- driven interface

Graphical user interface

Menu-driven interface only

Command only

13. One of the major causes of windows dominance in PC’s market is its

User-friendly GUI

Best security features

Feature of multitasking

Best marketing strategy

14. Which statement is not correct about the windows operating system

It can only be used in desktop system

It supports both 32&64-bit architecture

It supports voice commands

It supports diverse hardware platforms

15. Which statement is incorrect about open source software?

Paid license is required for it use

Changes can be made by the general public

Source code is freely available


It is publicly available

16. Choose the major drawback of a closed source software

Not affordable by the user

Not customizable

Not freely available to download

Neither affordable, customizable, nor freely available for download

17. Example of a closed source software is

Linux

Windows OS

Chrome browser

Fedora

18. A uniform extension is software components is possible in

software.

Vender specific

Open source

Community source

Both open and closed

19. A socket on end-point is required only if

Processor tries to write on internal hard disk

Two processes communication over network

A process needs a resource

Process needs to access main memory

20. DWORD data type represents

32 bit unsigned integer

32 bit signed integer

16 bit unsigned integer

16 bit signed integer

21. A software or application can access any windows object 


Directly

Directly and through API as well

Through API only

Not directly nor through API

22. Windows datatype LPTSTR

Long pointer to TSTR

Last pointer to TSTR

Last pointer to string

Long pointer to STR

23. Each windows API has a  number of parameters.

Fixed

Two

Variable

Four

24. Which statement is true about a multi- threading process?

A process has one or more threads

A process has only one thread

A thread has only one process

A thread can be created without process

25. Windows supports both the 32 and 64-bit source code by 

Keeping separate API’s for 32 and 64-bit code

Converting 32-bit into 64-bit code

Converting 64-bit into 32-bit code

Keeping separate compilers for each hardware

26. Windows operating system keeps version of each API

Two

One

Complied

Interpreted


27. Which statement is incorrect about the 32-bit source code?

It runs on 64-bit hardware and can use its all features

It has its own windows API

It does not support large disk space

It runs on 64-bit hardware

28. Choose the appropriate advantage of C source code that uses C standard function

Can access advance windows features

Portable source code

Runs on windows platform only

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.

Source code can only access some features of windows

Source code will not remain portable

Source code cannot be complied

Source code is portable

30. Which statement is true about open () function in C?

It opens the existing file and not exists it creats a new file

It opens the file only writing

It opens the file only reading

It opens the file only existing

31. fopen() function in C returns if the file is not successfully opened

Zero value

Point to a file

NULL value

Neither NULL nor Zero

32. Open file objects using C library functions are identified by 


Pointer to a file structure

Buffer

Handle

Both buffer and handle

33. A successfully read using fread() function in C is indicated by a

return value.

Non-negative

Zero

Negative

Boolean

34. What the following C statement represents; FILE *ptr;

Pointer to a file structure

Pointer to a character

Pointer to a integer

Pointer to a binary number

35. Which statement is true about createfile() function

DWORD

BOOL

HANDLE

INT

36. The return type of readfile() and writefile() is

It open the existing file or creating a new file

It is not used for opening a file

It opens or create a file only for generic read

It open or create a file only for generic write

37. LPWSTR stand for

Last pointer to wide string

Long pointer to wind string

Long pointer with string


Last pointer to string

38. The return type of malloc() function in C can be

Pointer to allocate space or NULL

Linked list

NULL only

A array

39. Which statement is correct about the convenience function?

It does not improve overall performance

It takes considerable time in execution

It performs a small task

A big task is performed a single API

40. UDF stands for

Universal driven format

Universal disk file

Universal driven file

Universal disk format

41. Which option is not related to the NT file system

Compression

Encryption

File size limitation

Fault tolerance

42. Which feature of NTFS related to data security?

Large file name mechanism

Encryption

File allocation table

Compression

43. Keeping in view the support for huge fole size, which file system is more favorable?

NTFS


FAT16

FAT32

FAT8

44. NTFS stand for

New trend file system

New technology file system

New trend for system

New technology for system

45. Which special symbol can be used in windows filename?

Pipe

Forward slash

Backward slash

Underscore

46. The path name of a remote resource of server starts with 

symbol.

Forward slash

Pipe

Double back slash

Black slash

47. In the windows file system, which symbol can be used as a path separator?

Pipe symbol

Back slash only

Both forward and backward

Forward slash only

48. The file extension usually contains characters.

5 to 8

2 to 4

1 to 2


1 to 3

49. In windows file system, the extension and file name is separated by

.

|

Dot(.)

\

/

50. The name of windows API used for opening and creating a new file is

CreateFile()

OpenFile()

CreateopenFile()

ReopenFile()

51. The return type of create file() function is.

NULL

A handle to an open file or INVALID_HANDLE_VALUE

INVALID_HANDLE_VALUE

Always handle to run open file object

52. In FILE_SHARE_READ mode, the file is shared for 

Concurrent read and write by multiple process

Concurrent read and write by a single process

Concurrent read by single process

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

Delete the existing file and create a new file

Delete the existing file

Over write an existing file

Create an existing file


54. In the createFile() function, which statement is true about open- existing attribute if the file does not exist.

It will create an existing file

It will open some other file insteated of specified file

It will fail to open the new file

It will create a new file

55. The windows API used to read data from a file and store it in a buffer.

Create File()

Copy file()

Read file()

Write file()

56. If the file is not opened in concurrent mode, then ReadFile() API. ReadFile()API starts reading from the

Backup file

Start file

End of file

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

Read operation will fail

400 bytes will be read

1000 bytes will be read

Exception will be thrown

58. The windows API is used to write data from a better and store it in a file

Create file

Copy file

Read file


Write file

59. The return type of writeFile() function is

BOOL

DWORD

LPDWORD

LPOVERLAPPED

60. It an invalid file handle is passed as a parameter to the closeFile() function, then it will return

1

Empty string

File handle

False value

61. A Unicode word consists of bits

24

32

16

8

62. In Unicode formate, number of character can be encoded.

210

28

232

216

63. The latest version of windows supports standard.

ASCII

Unicode

Scan codes

Both ASCII and Unicode

64. TCHAR is a/ an type variable.

ASCII


Generic

Unicode

Both ASCII and Unicode

65. _stprintf() is a/ an c library function.

Both ASCII and Unicode

Generic

Unicode

ASCII

66. _tcscmp() is function to compare the string

An ASCII

A Unicode

Not a generic

A generic

67. Which one is the correct definition of generic main() function?

Int-main

Int main

Int main

Int_main

68. All generic data types are include header file.

<tchar.h>

<string.h>

<windows.h>

<char.h>

69. All generic functions are include in header file

<string.h>

<windows.h>

<char.h>

<tchar.h>

70. TextOutW() is bit API and it supports standard.


32,Generic

32,ASCII

32,Unicode

16,Unicode

71. The standard C library function atio() supports

Generic code

Unicode

128-bit character code

8-bit character code

72. To switch between 8-bit character code and standard Unicode 

functions and data type are required.

Generic

Non-generic

Unicode

8-bit

73. Developing generic code needs extra effort but provides maximum

 

 

Productivity

User-friendly look

Chance of errors

Flexibility

74. What is the return value of GetlastError() function?

It returns error code for last error

It return a formatted message for last error

It takes input message from user and returns

It return error message for the last error

75. Which windows API is used to return a system error code?

Geterror()

Format message ()


Get last error()

Both geterror() and format Message()

76. Which header file includes all the Unicode macros for setting environment of a program?

<everything.h>

<environment.h>

<tchar.h>

<windows.h>


77. There are system.

Five

Three

Two

Four

number of standard I/O devices in a windows


78. In a windows system, input and are three standard I/O devices.

Error, correction

Output, display

Display, error

Output, error

79. On execution, HANDLE_GetstHandle(DWORDnst Handle) will return a valid handle in case of

Passing invalid parameters

Success

Exception

Failure

80. STD_INPUT_HANDLE macro contains a variable, CONIN$,which is a/an .

Input variable


Default variable

Environment variable

Console variable

81. STD_OUTPUT_HANDLE contains

variable.

CONIN$

CONOUT$

CONPRNT$

CONDIS$

82. Option () function takes parameters.

3

4

5

Variable

83. Catfile() function takes parameters.

3

5

4

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.

Persian

Chines

Roman

Mughal

85. Roman empire use algorithm to encrypt secret conversation.

CTR

Ceaser cipher


Brute force

Cryto graph

86. The text that we are going to encrypt is called   test so it is denoted by

Personal, p

Secret, w

Proposed, p

Plain, p

87. We represent that text by the symbol   in the encryption formula.

E

B

A

C

88. The formula of ceaser chopper is

C = (E + W)mod26

E = (P +n) mod27

E = (D +n)mod27

C = (P + n) mod26

89. We use MoveFileEx() to the existing file

Copy

Rename

Over write

Delete

90. Which statement is true about hard copy function?

Both the files must not be on same system volume.

Both the files must be in encrypted form

Creates a hard link for copy file

Security attributes will apply on new file name


91. deleteFile() function takes parameter.

4

1

2

3

92. Which of the following API is used for coping a file?

CopyFile(LPCTSTRIPExistingFileName,LPCTSTR  IPNewFileName, bool bfailExists);

Char CopyFile(LPCTSTRIPExistingFileName,LPCTSTR IPNewFileName, bool bfailExists);

Bool CopyFile(LPCTSTRIPExistingFileName,LPCTSTR IPNewFileName, bool bfailExists);

String CopyFile(LPCTSTRIPExistingFileName,LPCTSTR IPNewFileName, bool bfailExists);

93. Correct syntax of MoveFile() function is 

Bool Move (LIPCTSTR lpNewName, LPCTSTR lpExistingFileName);

Bool Move (LIPCTSTR lpNewName, LPCTSTR lpNewFileName);

Bool MoveFile (bool LIPCTSTR lpNewName, LPCTSTR lpExistingFileName);

Bool Move (bool lpNewName, LIPCTSTR LPCTSTR lpExistingFileName);

94. RemoveDirectory() function takes parameter(s)

1

4

3

2

95. Set currentDirectory() function takes parameter(s)


2

1

4

3

96. Return type of GetcurrentDirectory() function is ()

Int

Bool

String

DWORD

97. createDirectory() function takes parameter(s)

4

3

1

2

98. deleteFiles() function takes parameter(s)

1

4

3

2

99. Return type of printMsg() function is

DWORD

CHAR

BOOL

WORD

100. Return type of printString() function is

DWORD

CHAR

BOOL

WORD


101. Correct syntax for create console input file is

hln = createFile(_T(“CONOUT$”), GENERIC_READ&NULL, OPEN_ALWAYS, FILE_ATTRIBURT_NORMALNULL);

hln = createFile(_T(“CONOUT$”), GENERIC_READ,1 GENERIC_WRITE,0&NULL, OPEN_ALWAYS, FILE_ATTRIBURT_NORMALNULL);

hln = createFile(_T(“CONIN$”), GENERIC_READ,1 GENERIC_WRITE,0&NULL, OPEN_ALWAYS, FILE_ATTRIBURT_NORMALNULL);

prohln = createFile(_T(“CONIN$”), GENERIC_READ,1 GENERIC_WRITE,0&NULL, OPEN_ALWAYS, FILE_ATTRIBURT_NORMALNULL);

102. consoleprompt() function takes parameter(s)

2

3

5

4

103. Current syntax of Get currentDirectort() function is 

lencurDir =GetcurrentDirectory(DIRNAME_LEN,PwdBuffer);

lencurDir =GetcurrentDirectory(DIRNAME_LEN);

lencurDir =GetcurrentDirectory(DIRNAME_LEN);

lencurDir =GetcurrentDirectory(PwdBuffer);

104. Get currentDirectory() function takes parameter(s)

2

3

5

4

105. Return type of prontMsg() function is


WORD

BOOL

CHAR

DWORD

106. Get Directory() function takes parameter(s)

2

3

5

4

107. In NTPS based system is the maximum allowed size for a single file

28

232

216

264

108. FAT 32 based system is the maximum allowed size for a single file

28

232

216

264

109. setFilepointer() function takes parameter(s)

2

3

5

4

110. PLONG is a

Pointer to a long variable


String

Variable

Pointer to a string

111. Return type of setFilePointerEx() is

String

Bool

Word

DWORD

112. In setfilepointer() function, lpNewFilePointer parameter is placed is a/an

Handle

PLARGE_INTEGER

DWORD

LARGE_INTEGER

113. In setFilePoiter() function, distance to move parameter is placed in

DWORD

Handle

PLARGE_INTEGER

LARGE_INTEGER

114. There are components of a LARGE integer

2

3

4

5

115. In the Overlapped structure, ULONG_PTR internal is a

field.

DWORD

Integer


Pointer

Reserved

116. Overlap structure is a structure which is defined in the

header file

Window.h

Stdary.h

Everything.h

Stdio.h

117. In the overlapped structure the data type of ofsetand offsethigh is

DWORD

WORD

INT

BOOL

118. EOF is short form of

Erase of file

End of file

End of folder

Erase of folder

119. Return types of getfilesizeEx() is

Bool

Char

Int

DWORD

120. To reduce the filesize we use windows API.

Setfilesize()

Changefilesize()

SetendoffileEx()

setfileEx()


121. File size cn be obtained using the  windows API.

GetFileSizwEx()

FileSizeExGet()

GetFileSize()

FileSize()

122. In the RECORD structure, datatype of numRecord is 

DWORD

BOOL

Double

Int

123. In the RECORD structure, datatype of numNonemptyRecord is

DWORD

BOOL

Double

Int

124. What will be next code statement, if the following if statement id true? If (!setFilePointer Ex(nfilecurrentptr, NULL,FILE_BEGIN))

RepotError(_T(“RecordAccessError: writeFile header”.)4,TRUE);

RepotError(_T(“RecordAccessError: writeFile header”.)6,TRUE);

RepotError(_T(“RecordAccessError:  setpointer”.)4,TRUE);

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))


ReportError (_T(“RecordAccessError:set End of File.”),5,TRUE);

ReportError (_T(“RecordAccessError:set pointer.”),4,TRUE);

ReportError (_T(“RecordAccessError:write File header.”),4,TRUE);

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

Directory -64

Attribute

Directory -32

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))

ReportError (_T(“RecordAccessError:set End of header.”),6,TRUE);

ReportError (_T(“RecordAccessError:set pointer.”),4,TRUE);

ReportError (_T(“RecordAccessError:write File header.”),5,TRUE);

ReportError (_T(“RecordAccessError:readFile header.”),4,TRUE);

128. The number of arguments required for Findclose()API is

 

 

3

1

2

0


129. The field flastAccessTime in a WIN32-FIND-DATA structure is used to represent a time when a file was time accessed

Closing

Last

First

Second ;last

130. Using GetFileTime() API argument(s) is/are provided.

Both creation and last access time

Only last access time

Creation, last access and last write time

Only creation time

131. GetFileAttribute() API need argument(s) to return the attributes of a file or directory

1

2

3

0

132. compareFileTime() API returns if both the file time are equal

0

2

1

-1

133. Which option is incorrect when the traverseDirectory() API is required to be use?

It allow non-recutsive traversal

Recursive and non-recursive traversal option is irrelevant

It allows recursive traversal


It allows both non- recursive and recursive traversal

134. Which of the followingis not an argument of the traverse Directory() API

Option for simple listing or recursive processing

Search pattern

Parent path

File creation time

135. Temporary files are assigned an extension and they are used to store

.temp,final result

.tmpe,intermediate result

.tmp,intermediate result

.com,intermediate result

136.  is not a value argument for setFiletime() function

pModifyTime

NULL

_T(ame)

_P(accesstime)

137. SetFileTime() function takes a total of arguments.

3

5

4

2

138. GetsystemTimeAsFiletime() function receive as an argument.

File array

File pointer

File handle

File objects


139. Which of the following is not a correct argument of options() function

Argc

Argv

_T(amg)

_T(amc)

140. The fseek() C library function uses bit file position

8

16

32

64

141. For file processing windows provides a propriating function called

Pseek64()

Fseek()

Fseek64()

Pseek()

142. In MicrosoftUNIX library, all I/O function are named with

prefix.

Semicolon

Dot

Underscore

Colon

143. In lockFileEx() function, the OVERLAPPED data structure contains data members.

3

5

2

4


144. File lock can be or

Read-only, write-only

Read-only, write-only

Read-locked, write only

Read-only, read-write

145. The read operation does not conflict with the 

Existing shared lock

Remove operation

Write operation

Existing exclusive lock

146. Before encountering a/an lock, the read or write operation can complete its request partially

Exclusive lock

Shared lock

Mutually exclusive lock

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

Return exception

Succeed

Return a shared lock

Fail

148. UNIX system stores information in directory similar to the registry entry

/etc

/reg

/key

/root


149. Programmers usually access windows build number through

 

 

Web sockets

Web API

RESI API

Windows API

150. Information about is not present in the registry file.

Power supply

Chipset

Memory

Processor

151.  information is present in the registry HKEY_CURRENT_CINFIG.

Display resolution

Process make

Display size

Memory amount

152. The registry HKEY_CURRENT_USER does not contain

information.

System fonts

Printers

Environment variable

Application preferences

153. The registry HKEY_LOCAL_MACHNE stores 

information about the machine

Physical

Private

Protected

Logical


154.  function enumerates subkey names of an open

registry key.

RegEnumKey()

RegOpenKey()

RegOpenKeyEx()

RegENUMKeyEx()

155. The RegOpenKeyEx() function opens a named

Instance

Sub key

Key

List

156. The function RegCreateKeyEx() ha parameters.

8

7

9

6

157. Is Reg() function processes registry keys rather than 

and

Key-value pairs, files

Key-value pairs, properties

Directories, key-value pairs

Directories, files

158. RegSetvalueEx() function is used to set the data of a 

value.

Final

Fixed

Named

Static


159. The exception could occur within a embedded in the try block.

List

Function

Constructor

Block

160. If filter_expression returns then windows ignores the exception handler and searches for an exception handler in the enclosing block.

EXCEPTION_SKIP_EXECUTION

EXCEPTION_CONTINUE_SEARCH

EXCEPTION_CONTINUE_EXECUTION

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.

EXECUTION-NONCONTINUABLE-EXCEPTION

EXECUTION-NONCONTINUABLE-EXECUTION

EXECPTION-NONCONTINUABLE-EXCEPTION

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

EXCEPTION-INTEGERS-VOILATION

EXCEPTION-INTEGERS-BREACH

EXCEPTION-ACCESS-VOILATION

EXCEPTION-INTEGERS-BREACH

163. SHE is not supported through

Run time support

Windows function


Compiler supported language extensions

Windows registry

164. The filter-expression in the clause is evaluated immediately after the exception occurs.

-try

-catch

-except

-finaly

165. The value of the determine actions that follow

Filter-except

Filter-expression

Filter-try

Filter-search

166.  function is used to clear the floating-point exception after it is processed.

_clear()

_clearfp()

_clean()

_cls()

167. Programs can raise their own exception using the  function

BuildException

RaiseException

Createexception

GenException

168. RaiseException has  parameters.

4

2

5


3

169. The exception handler is actually a code portion associated with block.

-finally

-try

-except

-catch

170. The new value of floating point mask is determined by its value and its two arguments.

Current-value

C-value

Current-mask

Current-val

171. The function terminates the process if the program indicates that the error is fatal.

Report handle()

Terminate handle()

Terminate process()

Report error()

172. SIGSEGV error can only be generated bt  but not by

 

 

Windows, Raise

Linux, macos

Windows, linux

Raise windows

173. A single try block must have a single or block

Terminate, Except

Finally, Except

Finally, continue


Terminate, finally

174.  function is used within the termination handle to check how the try block is terminated

Check termination()

Check handle()

Check termination

Abnormal termination

175. ReportException() function have arguments.

3

4

2

5

176. Second arguments of ReportException()function is 

Exception code

Exception handle

Exception address

Exception name

177. The process or thread can terminate itself using  or

functions.

Terminate process(), Exist thread()

Terminate process(), Terminate thread()

Exist process(), Exist thread()

Exist thread(), Terminate thread()

178. The termination handler cannot execute the statement

Break

Report

Continue

Retur

179. C ++ execution handling is implemented using


SCH

ECH

ESH

SEH

180. A filter function the type of n exception.

Restrick

Evaluates

Exclude

Identifies

181. The exception are enabled with the help of controlfp() function

Floating point

String

Mutex

Integer

182. ecategory is a/an

Reference variable

Simple variable

Class

Pointer

183. Which of the following in the number of parameters takes by controlpf() function

3

4

1

2

184. Which of the following in the number of parameters takes by filter function

1


2

3

4

185. Which of the following instruction is used to suspend the execution of a program for 5 milliseconds?

Sleep(500)

Sleep(5000)

Sleep(5)

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?

Beep (750,800)

Beep(700,750)

Beep(750,700)

Beep(750,0.7)

187. A program can be terminated by passing from keyboard

Ctrl +p

Ctrl +N

Ctrl +C

Ctrl +Z

188. The return type of WINAPI Handler() function if

Void

Static integer

Static bool

Static float

189. #include<io.h> is used for

Input output operation

Working in CLI

Memory allocation


Multitasking

190. Windows OS keeps version of each API.

One

Interpreted

Two

Complier

191. The options function have arguments

5

4

7

6

192. If invalid file handle is passed as a parameter to the closeFile API, then it will return

Empty string

1

File handle

False value

193. stcrcmp() is function to compare the strings.

A generic

An ASCII

Not a generic

A Unicode

194. A standard C library function atoi() supports code.

8-bit or Unicode

Generic code

Unicode only

8-bit only

195. There are  number of standard input out devices.

3


5

4

2

196. Every lockfileEx() function that is successful must be followed by a call to

DeletelockEx()

RemovelockEx()

UnlatchlockEx()

UnclockfileEx()

197. Try and catch keywords required for vectored exception handlers.

Are not

Are

Must be

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.

Third

Last

Second

First

199. In the vectored exception handler, the value of firsthandler parameter specific the in which the handler will execute.

Order

Speed

Allocation of stack

Accuracy


200. Windows checks for a vectored exception handler at the

place when a vectored is set up followed by unwinding the stack.

Second

Third

First

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.

Third

Last

Second

First

202. Which of the following is a dynamic data structure

Circular array

Array

Tree

Union

203. Identify the advantages provided by memory mapped files.

Convenience, collision, octection and memory sharing

Exception handling, speed and memory sharing

Convenience, speed and usability

Convenience, speed and memory sharing

204. Windows mainly uses API.

4

2

3

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

One quarter

Half

Two third

Three quarter

206. The virtual space of process be larger than the physical memory space.

Should always

Cannot

Must

May

207. Which of the following occurs as a result of excessive page fault in

Decreased system performance

Increased utilization of I/O ports

Decreased utilization of I/O ports

Increased system performance

208. When the required page is not in the memory then a 

occurs.

Page fault

Dirty frame

Page error

Frame fault

209. The translation of a virtual address int physical address is managed by the

Offset addressing

Operating system

Device driver


Transport layers

210. Pages are swapped in and out when a occurs.

Page fault

Frame fault

Page error

Dirty frame

211. Which of the following is a dynamic data structure.

Circular array

Tree

Union

Array

212. A process can have heap(s).

Only once

Only two

Many

At the most two

213. When a fixed size data structure is allocated from a single heap, it reduces

Fragmentation

Errors

Memory density

Throughput

214. The heapReAlloc() API has parameter(s).

4

1

3

2

215. The heapAlloc() API has parameter(s).


4

2

1

216. When a heap (logical structure) is created the memory is

allocated at the program.

Partially

Completely

Not directly

Directly

217.  are the APIs for heap memory allocation.

Heapcreate ()and HeapRealloc()

Allocheap () and HeapRealloc()

HeapAlloc() and HeapRealloc()

HeapAlloc() and HeapRealloc()

218. For a non growable heap, the value of dwbytes in heap memory alloction is

0*7FEE8

0*7FDD8

0*AAAA8

0*7FFF8

219.  is the first step tp allocate heap in a program.

HeapDestroy()

HeapFree()

Release and handle

Get heap handle

220. The function heapSize() returns the size oa a block, or

in case failure.

NULL


-1

0

221.  is used to deallocate the entire heap.

HeapDestroy()

HeapFree()

HeapTruncate()

HeapDelete()

222. Sorting is performed in the

RootHeap

RecHeap

ProcHeap

NodHeap

223.  stores the root address.

RootHeap

RecHeap

ProcHeap

NodHeap

224. The NodeHeap maintains a

Data

Data structure

Record

Root

NodeHEap BOTH ANSWER CORRECT

225. There are parameters taken by the HeapCreate() API.

3

4

2


226. Which of the following is the correct windows API for accessing heap?

INT GetProcessHeap(VOID)

VOID GetProcessHeap(HANDLE)

HANDLE GetProcessHeap(VOID)

INT*GetProcessHeap(VOID)

227. When a fixed size data structure is allocated from a single heap, it reduces

Memory density

Errors

Throughput

Fragmentation

228. The parameters “flOption” in the HeapCreate() API is a combination of flafs.

1

2

4

3

229. In order to make a program more efficient, heap(s) may be required

Several

Only one

Partial

Minimum number of

230. While using CreateFileMapping(), allow the mapping object to be secured.

INVALID_VALUES

PSECURITY_ATTRIBUTES

LPSECURITY_ATTRIBUTES


INVALID_HANDLE_VALUES

231. While using CreateFileMapping(), refers to the paging file.

INVALID_VALUES

PSECURITY_ATTRIBUTES

LPSECURITY_ATTRIBUTES

INVALID_HANDLE_VALUES

232. While using CreateFileMapping(),setting lpMapName to

disables the map sharing.

-1

NULL

0

1

233.  is the API for file mapping objects.

Create_File_Mapping()

CreateFileMapping()

FileCreateMapping()

MakeFileMapping()

234. Which of the following are the number of parameters taken by CreateFileMapping()?

7

6

5

4

235. Console control handlers are quite similar to

Function

Parameter

Interrupt

Exception Handlers


236. If threads have separate memory space, then it will reduce

 

 

Direct Memory access

Memory Density

Access speed

Memory Contention

237.  API is used to create a new heap.

HeapCreate()

NewHeap()

CreateHeap()

BuidlHeap

238. SEH is not supported through

Window Registry

Run-Time Support

Compiler Supported Language Extensions

WindowsFunction

 

239. Serialization is necessary when concurrent threads use

resource(s).

ETRA

The remaining

Different

A common

240. In order to deallocate a block of heap, is used.

HeapDelet()

Heap Turnicate()

HeapDestroy()

HeapFree()



 

 

Post a Comment (0)
Previous Post Next Post
z
//1