Module 1 Quiz Questions Flashcards

1
Q

Language hierarchy: rank the following languages from low level (1) to high level (4)

Python, Machine Code, English, Arm Assembly

A

Level 4 - English
Level 3 - Python
Level 2 - Arm assembly
Level 1 - Machine Code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True / False: The linker combines object files into an executable file

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which utility program reads an assembly language source file and produces an object file?

A

Assembler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A program is considered portable if it
- can be rewritten in a different programming language without losing its meaning
- can be executed on multiple platforms
- can be quickly copied from conventional ram into high-speed ram

A

can be executed on multiple platforms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following best describes the relationship from assembly language instructions to machine language instructions:

  • many to many
  • many to one
  • nearly one to one
  • one to many
A

nearly one to one

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the range of decimal values for a signed BYTE?
- -128 to 128
- -128 to 127
- -127 to 127
- -127 to 128

A

-128 to 127

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the range of decimal values for an unsigned DWORD?
- -2,147,483,648 to 2,147,483,647
- -2,147,483,648 to 2,147,483,648
- 0 to 4,294,967,295
- 0 to 4,294,967,296

A

0 to 4,294,967,295

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How many bytes long is a QUADWORD on x86 systems

A

8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The two’s complement of a binary value is formed by which process?

A

reversing (inverting) the bits and adding 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The ASCII code values for alphabetic letters (e.g. ‘a’) are smaller than for decimal digits (e.g. ‘1’).

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Convert the following ASCII hex representation to a character string: 41 77 65 73 6F 6D 65

Do not add any spaces. For example, the hex 31 2B 7A represents the string: 1+z

A

Awesome

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Convert the following string into its ASCII hex representation: Magical
Don’t use 0x or h to represent the hex values. For example, the ASCII hex representation for “1+z” is 31 2B 7A

A

4D 61 67 69 63 61 6C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Convert the following value from signed decimal to 8-bit binary: -33

NOTE: Canvas may add a decimal point and thousands place commas, for example 11001100 may appear as 11,001,100.0 … Please ignore these.

A

11,011,111

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which of the following binary values is equivalent to hexadecimal 7CBE?

0111 1101 1011 1110
0111 1100 1011 1110
0111 1100 1011 1110
0111 1011 1011 1100

A

0111 1100 1011 1110

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Complete the following Unsigned Binary Addition (answers should also be in Binary):

NOTE: Canvas may add thousands place commas (for example 11001100 may appear as 11,001,100) … Please ignore these.

10110011   \+ 10100001
A

101,010,100

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Complete the following Unsigned Hexadecimal Addition (answers should also be in Hexadecimal):

NOTE: Canvas may add thousands place commas (for example 9C4B may appear as 9,C4B) … Please ignore these.

2C17   \+ 575B
17
Q

Complete the following unsigned Binary Subtraction:

01110111   - 01100110   ---------- NOTE: Represent answer as an 8-bit value, with no spaces or characters other than 0s and 1s.
18
Q

Complete the following unsigned Hexadecimal Subtraction:

6A6F   - 1F89   ------ NOTE: Represent answer as a 16-bit hex (four character) value, with no spaces or characters other than 0-9, A-F.
19
Q

Convert the following signed SWORD to a decimal value.

1111 0101 0001 0100

20
Q

Convert the following unsigned WORD to a decimal value.

1100 1101 0011 1100

21
Q

A register is a container for data which resides on the CPU chip.

22
Q

A primary limitation on the speed of internal communication on a machine is the width of the internal bus.

23
Q

What component’s primary duty is synchronizing processes inside a computer?
- Memory Bus
- System Clock
- Instruction Register
- I/O Bus

A

System Clock

24
Q

What unit on a CPU chip is responsible for computing basic addition and subtraction operations?
- ALU
- I/O
- Control Unit
- FPU

25
Q

Match the Instruction Execution steps to the correct order and description.
- Step 1
- Step 2
Step 3
Step 4
Step 5
Step 6

A
  • The control unit fetches the next instruction from the instruction queue
  • The control unit increments the instruction pointer (IP, also known as the instruction counter)
  • The control unit decodes the instructions function to determine what the instruction will do
  • if the instruction uses an input operand located in memory, the control unit uses an input operation to retrieve the operand and copy it into internal registers
  • The ALU executes the instruction using the named registers and internal registers as operands
  • if the output operand is in memory, the control unit uses a write operation to store the data
26
Q

If you wanted to find out whether an 8-bit integer contained an even number of 1 bits, which status flag would be useful
- carry
- parity
- sign
- overflow

27
Q

In the IA-32 architecture, which of the following are valid 16-bit register references
ESI
AH
CX
SS
BL
SP

28
Q

In the IA-32 architecture, which of the following are valid 8-bit register references
AX
EL
SH
EAX
DH
AL

29
Q

Changes made to the AL register will not modify the contents of the EAX register

30
Q

Match the datatype to its use/description
BYTE
WORD
SWORD
DWORD
SDWORD
REAL4
REAL8

A

BYTE - 8-bit unsigned integer
WORD - 16-bit unsigned integer
SWORD - 16-bit signed integer
DWORD - 32-bit unsigned integer
SDWORD - 32-bit signed integer
REAL4 - 32-bit (4-byte) IEEE short real
REAL8 - 64-bit (8-byte) IEEE long real