Forwarded from โค
3. ๐ป What type of register is used to store the address of the next instruction to execute?
Anonymous Quiz
21%
A) Data Register (DR)
66%
B) Program Counter (PC)
10%
C) Base Register (BR)
3%
D) Status Register (SR)
Forwarded from โค
4. ๐ Which of the following is NOT a general-purpose register in the x86 architecture?
Anonymous Quiz
8%
A) AX
31%
B) BX
50%
C) CS
12%
D) DX
Forwarded from โค
5. ๐ True or False: In Assembly language, you can move data directly from one memory location to another without using a register.
Anonymous Quiz
19%
A) True
81%
B) False
Forwarded from โค
6. ๐ง What is the primary role of the Stack Pointer (SP) register?
Anonymous Quiz
33%
A) Holds the return address of function calls
67%
B) Points to the top of the stack in memory
0%
C) Holds data for calculations
0%
D) Stores flags for arithmetic operations
Forwarded from โค
7. โ๏ธ Which of the following instructions is used to load a value from a memory location into a register?
Anonymous Quiz
53%
A) MOV
11%
B) ADD
37%
C) PUSH
0%
D) JUMP
Forwarded from โค
8. ๐งณ True or False: You can use general-purpose registers for storing both data and memory addresses.
Anonymous Quiz
89%
A) True
11%
B) False
Forwarded from โค
9. ๐ Which register is used to reference the base of the current stack frame in function calls?
Anonymous Quiz
35%
A) Base Pointer (BP)
35%
B) Stack Pointer (SP)
24%
C) Program Counter (PC)
6%
D) Data Register (DR)
Forwarded from โค
11. ๐ Which of the following is the correct syntax for moving an immediate value (constant) into a register?
Anonymous Quiz
36%
A) MOV [AX], 10
21%
B) MOV 10, AX
43%
C) MOV AX, 10
0%
D) MOV 10, [AX]
Forwarded from โค
10. ๐งฎ True or False: The Base Register (BR) in assembly language is used for arithmetic operations.
Anonymous Quiz
57%
A) True
43%
B) False
Forwarded from โค
13. ๐ What is the primary function of the Instruction Pointer (IP) register?
Anonymous Quiz
57%
A) Holds the address of the next instruction to execute
29%
B) Stores temporary data during execution
14%
C) Keeps track of the stack
0%
D) Holds the return address of function calls
Forwarded from โค
โก๏ธ Get Ready for Some Tricky Questions!
๐ฅ Now itโs time to test your knowledge with some tricky questions! Think carefully and donโt rush๐ง ๐ฅ Stay sharp and answer wisely! ๐ช
๐ฅ Now itโs time to test your knowledge with some tricky questions! Think carefully and donโt rush๐ง ๐ฅ Stay sharp and answer wisely! ๐ช
Forwarded from โค
1. ๐ง Even though Assembly language is close to machine language (which is 0 and 1), there is no actual one-to-one relation between Assembly and machine language.
Anonymous Quiz
53%
A) True
47%
B) False
Forwarded from โค
2. ๐ The mnemonics in Assembly (such as MOV, ADD, etc.) correspond directly to specific CPU instructions.
Anonymous Quiz
69%
A) True
31%
B) False
Forwarded from โค
3. ๐งฐ Which operation is NOT allowed by the CPU?
Anonymous Quiz
7%
A) Memory-to-register
21%
B) Register-to-register
0%
C) Register-to-memory
71%
D) Memory-to-memory
Forwarded from โค
4. ๐ Which one of the following is correct about MOV AX, BX?
Anonymous Quiz
50%
A) AX is the source, BX is the destination
42%
B) AX is the destination, BX is the source
0%
C) Both AX and BX can the destination
8%
D) Both AX and BX can the source
Forwarded from โค
5. ๐ What is the command to compare two values in Assembly language?
Anonymous Quiz
15%
A) CPR
8%
B) CPMR
38%
C) CMPR
38%
D) CMP
Forwarded from โค
6. ๐ What character is used to comment in Assembly
Anonymous Quiz
27%
A) //
20%
B) #
20%
C) ;
33%
D) <!-- -->
Forwarded from โค
7. ๐ What is the command to jump to a line in loops (similar to goto in C++)?
Anonymous Quiz
50%
A) JMP
8%
B) JNP
0%
C) JPM
42%
D) JUM
Forwarded from โค
8. โก๏ธ Which operation is faster?
Anonymous Quiz
0%
A) Fetching from ROM
7%
B) Fetching from RAM
93%
C) Fetching from CPU registers
Forwarded from โค
9. โณ How many cycles does it take to fetch data from CPU registers and from RAM?
Anonymous Quiz
25%
A) 10 cycles for register, 100 cycles for RAM
17%
B) 10 cycles for register, 1000 cycles for RAM
50%
C) 1 cycle for register, 100 cycles for RAM
8%
D) 100 cycles for register, 1000 cycles for RAM
Forwarded from โค
10. ๐ง If registers are much faster, why can't we use them instead of memory?
Anonymous Quiz
7%
A) CPUs are small in size
79%
B) Registers cannot hold data for longer periods
14%
C) Registers have smaller sizes (16, 32, 64 bits)