Question

7. Which Windows API function reads a single character from input? a. ReadChar b. ReadConsole c....

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

0 0
Add a comment Improve this question Transcribed image text
Answer #1

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

b. ReadConsole

    Reads a character from the console input buffer and removes it from the buffer.

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

d. WriteConsole

   The WriteString Procedure write a null terminated string to the standard output. It invokes the WriteConsole of Windows API.

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

b. WriteConsoleOutputCharacter

This copies a number of characters to consecutive cells of a console screen buffer, beginning at a specified location.

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

c. CreateFile

This function creates a new file or opens an existing file.

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

d. TRUNCATE_NEW

TRUNCATE_EXISTING is used as the CreationDisposition parameter.

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

c. FILE_REVERSE

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

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

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.

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.

Add a comment
Know the answer?
Add Answer to:
7. Which Windows API function reads a single character from input? a. ReadChar b. ReadConsole c....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1.Suppose that the goop function from the previous question changes the value of z[1]. Does this...

    1.Suppose that the goop function from the previous question changes the value of z[1]. Does this change effect the value of the actual argument? A. Yes B. No 2.Here is a function declaration: void goo(int* x) { *x = 1; } Suppose that a is an int* variable pointing to some integer, and *a is equal to zero. What is printed if you print *a after the function call goo(a)? A. 0 B. 1 C. address of a D. address...

  • These are my answere to the following questions: are they right? 1. B 2. T 3....

    These are my answere to the following questions: are they right? 1. B 2. T 3. T 4. T 5. F 6. T 7. A 8. D 9. E 10. B 11. B 12. A 13. A 14. D 15. C 16. D 17. T 18. C 19. T 20. T 21. T 22. A 23. T 24. D 25. B 26. A 27. A 28. A 29. T 30. C 31. D 32. A 33. T 34. F 35....

  • i need help with a mips program to to covert roman numerals to real numbers Lab 4: Roman Numeral Conversion Part A: Due...

    i need help with a mips program to to covert roman numerals to real numbers Lab 4: Roman Numeral Conversion Part A: Due Sunday, 19 May 2019, 11:59 PM Due Friday, 24 May 2019, 11:59 PM Part B: Minimum Submission Requirements Ensure that your Lab4 folder contains the following files (note the capitalization convention): o Diagram.pdf o Lab4. asm O README.txt Commit and push your repository Lab Objective In this lab, you will develop a more detailed understanding of how...

  • C++ 1st) [Note: This assignment is adapted from programming project #7 in Savitch, Chapter 10, p.616.]...

    C++ 1st) [Note: This assignment is adapted from programming project #7 in Savitch, Chapter 10, p.616.] Write a rational number class. Recall that a rational number is a ratio-nal number, composed of two integers with division indicated. The division is not carried out, it is only indicated, as in 1/2, 2/3, 15/32. You should represent rational numbers using two int values, numerator and denominator. A principle of abstract data type construction is that constructors must be present to create objects...

  • Roadmap To start, use the provided template file (on Blackboard): project_01_template.py. Replace the pass statements with...

    Roadmap To start, use the provided template file (on Blackboard): project_01_template.py. Replace the pass statements with your code. Notice that we included test cases under every function. If you run the project_01_template.py file at this point it should print False for each test. After you write the correct code for each function, and then run the file, it should print True for each test. 1. Write a function named gc_content that takes one argument sed and performs the following tasks:...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT