click below
click below
Normal Size Small Size show me how
Stack #4545821
CSA 1st Formative
| Question | Answer |
|---|---|
| What is the purpose of the TIMES directive? | To initialize multiple values |
| Which directive defines a byte in assembly? | db - BYTE |
| Which directive defines a string constant? | db |
| Which addressing mode is fastest? | Register |
| Which directive defines a table of data? | DB (used to create tables of data, strings, or arrays.) |
| What is the default byte ordering used by the processor? | Little-endian |
| Which register holds the file descriptor for standard output (stdout)? | EBX (file descriptor) |
| What is the role of the EDX register in a SYS_WRITE system call? | It specifies the length of the data to write (EDX) |
| Which instruction affects the Carry Flag (CF)? | ADD (Overflow so there's CF) |
| Which system call number is used for writing to the console in Linux? | 4 (System Write) |
| Which addressing mode uses Segment:Offset? | Indirect |
| Which system call number is used for reading input in Linux assembly? | 3 |
| What is the purpose of the equ directive? | To define a constant |
| Where is the multiplicand located during a MUL operation? | In an accumulator |
| Which instruction sets one or more bits without changing others? | OR (Sets to 1) |
| What is the purpose of the DS register? | hold the segment address of the data segment |
| What happens if overflow occurs during a DIV operation? | Processor generates an interrupt |
| What type of operations are NOT possible with ADD | SUB instructions? |
| What is the size of a quad word? | 64 bits |
| Which addressing mode uses registers? | Register |
| What is immediate addressing? | Operand is a constant |
| What does the section.data directive define in an assembly program? | The initialized data section |
| This section is used for keeping the actual code. | text section |
| It indicates the result of an arithmetic or comparison operation. | Zero Flag |
| These are basically a text substitution mechanism | macros |
| This addressing mode uses the arithmetic operators to modify an address. | direct offset addressing (Direct Adressing) |
| It indicates the overflow of a high-order bit (leftmost bit) of data after a signed arithmetic operation. | overflow flag |
| It contains the carry from bit 3 to bit 4 following an arithmetic operation. | auxiliary flag (Also known as Adjust Flag) |
| ASCII of $ | 24H |
| ASCII of A | 41H |
| ASCII of | n |
| ASCII of space | 20H |
| 41H - 5AH | A-Z |
| 61H - 7AH | a-z |
| This directive is used for allocation of storage space. It can be used to reserve as well as initialize one or more bytes | Reserve Directives (Reserve only) |
| It determines left or right direction for moving or comparing string data. | Direction Flag |
| Both the operands in MOV operation should be of same size. | True |
| It tells the processor what to do. | Executable Instructions (Executes) |
| It allows setting the operation of the processor in single-step mode. | Trap flag (Debugging) |
| Which of the following is not a part of a basic instructions | Macros |
| This addressing mode uses the arithmetic operators to modify an address. | Direct Offset Addressing (+ -) |
| It is represented by .data section and the .bss. | data segment |
| These store data elements for processing without having to access the memory. | Registers (directly built in the processors) |
| In this addressing mode, an immediate operand has a constant value or an expression. | Immediate Addressing |
| Which of the following is not a type specifier? | all of the above |
| In direct memory addressing, one of the operands refers to a memory location and the other operand references a register. | True |
| These registers are used for indexed addressing and sometimes used in addition and subtraction. | Index |
| In this addressing mode, the offset value is specified directly as part of the instruction, usually indicated by the variable name. | True |
| These registers mainly helps in referencing the parameter variables passed to a subroutine. | pointer |
| These registers mainly helps in referencing the parameter variables passed to a subroutine. | Pointer |
| In this addressing mode, a register contains the operand. | Register Addressing |
| In this addressing mode, the offset value is specified directly as part of the instruction, usually indicated by the variable name. | Direct Memory Addressing |
| It contains the carry of 0 or 1 from a high-order bit (leftmost) after an arithmetic operation. | Carry Flag |
| It shows the sign of the result of an arithmetic operation. | Sign Flag |
| It divides the system memory into groups of independent segments referenced by pointers located in the segment registers. | segmented memory model |
| These are APIs for the interface between the user space and the kernel space. | System calls |
| It is represented by .text section. This defines an area in memory that stores the instruction codes. | code segment |