Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

7. Which Windows API function reads a single character from input? a. ReadChar b. ReadConsole c. ReadConsoleBuffer d. ReadInputByte 8. The WriteString procedure in the

7. Which Windows API function reads a single character from input?

a. ReadChar

b. ReadConsole

c. ReadConsoleBuffer

d. ReadInputByte

8. The WriteString procedure in the Irvine32 library is actually a wrapper around which Windows API function?

a. WriteFile

b. WriteOutputBuffer

c. PrintConsole

d. WriteConsole

9. Which Windows API function copies an array of characters to consecutive cells of the console screen buffer, beginning at a specified location?

a. WriteArray

b. WriteConsoleOutputCharacter

c. WriteConsoleScreenBuffer d. WriteConsoleArray

10. Which Windows API function opens an existing file for input?

a. OpenFile

b. MakeFile

c. CreateFile

d. OpenInputFile 2

11. Which of the following is not one of the CreationDisposition parameter options required when creating a new file?

a. CREATE_NEW

b. CREATE_ALWAYS

c. OPEN_ALWAYS

d. TRUNCATE_NEW

12. When moving the file pointer with SetFilePointer, which of the following is not a possible moveMethod value?

a. FILE_BEGIN

b. FILE_CURRENT

c. FILE_REVERSE

d. FILE_END

13. What happens when SetConsoleCursorPosition sets the cursor position to an area of the screen buffer that is not currently visible?

a. the cursor is not displayed

b. the console window is shifted to make the cursor visible

c. a runtime error results d. the cursor is moved to the upper-left corner of the visible window

14. In protected mode, how is a variable's offset translated into a linear address by the processor?

a. Uses the segment selector to look up the segment descriptor. Adds the segment's base address to the variable's offset.

b. Shifts the segment selector left 4 bits and adds the offset, producing a linear address.

c. Combines the value of the GDTR register with the segment selector in the logical address, and adds the segment base to the variable's offset.

d. Uses the LDTR register to locate the appropriate entry in the segment descriptor table, which contains the variable's linear address.

15. (True/False) When implementing paging, the processor uses a 10-bit directory field in the linear address. This directory field contains the base address of a page table. a. true b. false

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Marketing Database Analytics

Authors: Andrew D. Banasiewicz

1st Edition

0415657881, 978-0415657884

More Books

Students also viewed these Databases questions

Question

what causes an traiditional IRA to be non-ductible

Answered: 1 week ago