Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

True-False Please indicate whether each statement is True (T) or False (F). 1. I

ID: 3758208 • Letter: T

Question

True-False

Please indicate whether each statement is True (T) or False (F).

1. In large model programs, all code segments have the same name.

2. The following are all permissible segment ALIGN types: BYTE, WORD, DWORD, REAL4.

3. Only one code segment may be created in a single program module.

4. The segment combine type tells the linker how to combine segments having the same name.

5. The CLASS type in a segment definition makes it possible to combine two segments having different names.

6. The following is an example of a valid segment override:

mov eax,ds:var1

7. All COM programs use the small memory model.

8. The ASSUME directive permits the assembler to calculate the offsets of labels and variables.

9. When a key is pressed on the keyboard, the Intel 8259 programmable interrupt controller signals the CPU to suspend execution of the current program.

10. An EXE program can have overlapping code, data, and stack segments.

11. When an interrupt executes, an address in the Exception Process Table is used to locate the interrrupt handler.

12. Memory-mapped video is set up so that when characters are placed in memory at predetermined addresses, the characters appear on the video display only when a special control value is output to a hardware port.

13. IA-32 systems offer two types of hardware input-output: memory-mapped, and port-based.

14. Port-based I/O uses the IN and OUT instructions to read and write data to specific numbered locations.

15. The Speaker Demo Program uses the IN instruction to turn the speaker on

Explanation / Answer

Answer:

1.In large model programs, all code segments have the same name.

Answer is False.

Code segments can have different names

Answer is False

All permissible segment ALIGN types arebyte,word,dword, para, or page.

Answer is False

More than one code segment is permitted in a single program module

4.The segment combine type tells the linker how to combine segments having the same name.

True

There are following combine types available; PUBLIC, PRIVATE, MEMORY, COMMON, STACK, AT.

5. The CLASS type in a segment definition makes it possible to combine two segments having different names.

True

Segments having CLASS TYPE allows loader to combine two segments having different names.

6.The following is an example of a valid segment override:

mov eax,ds:var1

False.

7.      All COM programs use the small memory model.

True

By default all programs use small memory model.

8.      The ASSUME directive permits the assembler to calculate the offsets of labels and variables.

True.

ASSUME ds: sample

This tells the assembler that hereafter the variables and labels referenced will be in the “sample”.

9.      When a key is pressed on the keyboard, the Intel 8259 programmable interrupt controller signals the CPU to suspend execution of the current program.

True

10. An EXE program can have overlapping code, data, and stack segments.

True.

Assume data is present in DATA SEGMENT; EXE program present in CODE SEGMENT, information about stack is in STACK SEGMENT. There are two possible overlaps

i.STACK data overlap CODE SEGMENT

ii.CODE SEGMENT overlap STACK data

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote