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)
๐ How many questions did you ace? ๐ฅ
Letโs see how many of you are ready for the exam! ๐ Drop your score below!
Out of 23 questions, how many did you get right? ๐ค
Letโs see how many of you are ready for the exam! ๐ Drop your score below!
Out of 23 questions, how many did you get right? ๐ค
Anonymous Poll
25%
๐ All of them! (23/23)
25%
๐ Almost there! (20-22)
25%
๐ก Got a solid score! (15-19)
13%
๐ฅ Some tough ones! (10-14)
13%
๐
Well, I tried! (0-9)
Mosh-cheat-sheets.zip
7.1 MB
๐ Cheat Sheets by Mosh ๐
Quick reference for Java, Python, SQL, and Git! ๐
โ๏ธ Java Cheat Sheet
๐ Python Cheat Sheet
๐ SQL Cheat Sheet
๐ป Git Cheat Sheet
Stay tuned for more! ๐ฅ
๐๐ @AceCoding Presents! ๐๐
#Java #Python #SQL #Git #CheatSheet
Quick reference for Java, Python, SQL, and Git! ๐
โ๏ธ Java Cheat Sheet
๐ Python Cheat Sheet
๐ SQL Cheat Sheet
๐ป Git Cheat Sheet
Stay tuned for more! ๐ฅ
๐๐ @AceCoding Presents! ๐๐
#Java #Python #SQL #Git #CheatSheet
๐2
Whatโs wrong with the above snippet of code?
Anonymous Quiz
40%
a. Perfectly fine
14%
b. Sum is not printed
21%
c. Runtime error
24%
d. Compilation error
๐ฅ4
Predict the output:
int i = 0;
while (++i < 5);
cout << "i: " << i << endl;
Choose your answer for the above code.
Anonymous Quiz
31%
๐
ฐ๏ธ i: 4
21%
๐
ฑ๏ธ i: 5
18%
๐
พ๏ธ i: 6
18%
โ Infinite loop
13%
โ Compilation error
Predict the output:
int x = 5;
int y = 10;
(x > y ? x : y) = 50;
cout << "x: " << x << ", y: " << y << endl;