CS271- Quiz #2

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

The four-byte sequence 0xF6 0x45 0x71 0x85 stored in consecutive memory cells in a little-endian architecture represents ___________ (decimal) when interpreted as a 32-bit signed integer.

-2056174090.0 (with margin: 0)

1101 0000 1100 is an ODD parity 12 bit Hamming code that contains a single-bit error. What is the corresponding uncorrupted Hamming code?

1101 0000 1110

In the x86 Floating-Point, a decimal number contains three components: a sign, a significand, and an exponent.

True

List the three primary steps of the instruction execution cycle, in sequential order (even if some are missing).

fetch, decode, execute

What is the value of the Carry flag after the following instructions? mov eax,12345h mov ebx,1000h mul ebx

0.0

Select the correct ODD parity 12 bit Hamming code value for the unsigned integer value 251

0111 1110 1011

The following data segment starts at memory address 0x1200 (hexadecimal) .data printString BYTE "Assembly is fun",0 moreBytes BYTE 25 DUP(0) dateIssued DWORD ? dueDate DWORD ? elapsedTime WORD ? What is the hexadecimal address of dueDate?

0x122D

The following data segment starts at memory address 0x3600 (hexadecimal) .data printString BYTE "Do not add decimal to hex",0 someBytes WORD 19 DUP(0) moreBytes BYTE 10, 20, 30, 40, 50, 60, 70, 80, 90 questionAddr DWORD ? ignoreMe WORD ? What is the hexadecimal address of questionAddr?

0x3649

What will be the value of EAX when the following sequence of instructions has executed? push 5 push 10 push 20 pop eax

20.0 (with margin: 0)

The four-byte sequence 0x52 0xA5 0x8A 0x80 stored in consecutive memory cells in a little-endian architecture represents ___________ (decimal) when interpreted as a 32-bit unsigned integer.

2156569938.0 (with margin: 0)

Convert the following string into its ASCII hex representation. Don't use 0x or h with the hex values. The hex for "1+z" is 31 2B 7A Electric

45 6C 65 63 74 72 69 63

What will be the final values of CX and DX when the following code executes? .data array SWORD 8,2,3,5,-4,6,0,4 .code mov cx,1 mov esi,2 mov ax,array[esi] mov bx,array[esi+4] cmp ax,3 jae L2 cmp bx,4 jb L1 jmp L3 L1: mov cx,4 L2: mov dx,5 jmp L4 L3: mov dx,6 L4:

CX = 1, DX = 6

Which register contains the starting address of data when calling DumpMem?

ESI

Identify which of the following are allowed formats for the MUL instruction. (Check all that apply)

MUL reg MUL mem16 MUL mem8 MUL mem32

What is a single instruction that clears bits 0, 3, and 4 in the AL register?

and al,11100110b


संबंधित स्टडी सेट्स

PassPoint - Nursing Fundamentals 2

View Set

Government Unit 1: International Governments

View Set

Chapter 11 : Forecasting Requirements

View Set

Systemic Worksheet 5,6 & 7 Questions

View Set

EOC Review Cellular Respiration Test

View Set

QUIZ: Geometric Series and Applications

View Set