Assembly Language MCQ
Test your Assembly Language knowledge with 100 multiple choice questions covering fundamentals to advanced concepts, with instant feedback and explanations.
What is assembly language?
2What tool converts assembly language source code to machine code?
3What does the MOV instruction do in x86 assembly?
4What is a register?
5What does the ADD instruction do?
6What is the stack pointer (SP/RSP)?
7What does PUSH do in x86 assembly?
8What does POP do?
9What is the instruction pointer (IP/RIP)?
10What does the JMP instruction do?
11What does CMP do?
12What is the Zero Flag (ZF)?
13What does JE (or JZ) do?
14What is CALL used for?
15What does RET do?
16What is a label in assembly?
17What is the Carry Flag (CF)?
18What does SUB do?
19What does INC do?
20What does DEC do?
21What does NOP do?
22What is the base pointer (BP/RBP) used for?
23What is the function prologue?
24What are the major data sizes in x86 assembly?
25What does XOR EAX, EAX do?
26What does AND do in assembly?
27What does OR do?
28What does the TEST instruction do?
29What is the difference between little-endian and big-endian?
30What is a system call?
31What does MUL do?
32What does DIV do?
33What is a directive in assembly?
34What is the .data section?
35What is the .text section?
36What does LEA do?
37What is SHL used for?
38What is the Overflow Flag (OF)?
39What does XCHG do?
40What is LOOP used for?
What is the calling convention?
2What is the System V AMD64 ABI calling convention?
3What is the difference between caller-saved and callee-saved registers?
4What is CISC vs RISC?
5What is alignment in memory addressing?
6What is a segment register and what are the common ones?
7What is an interrupt?
8What is the purpose of CPUID instruction?
9What is SSE in the context of x86?
10What does the LEAVE instruction do?
11What is the red zone in x86-64 System V ABI?
12What is MOVZX and MOVSX?
13What is a NOP sled used for in security?
14What is address space layout randomization (ASLR)?
15What is stack canary?
16What is return-oriented programming (ROP)?
17What does the LOCK prefix do?
18What is CMPXCHG used for?
19What is a memory fence (MFENCE, LFENCE, SFENCE)?
20What is the difference between PUSH/POP and PUSHA/POPA?
21What is pipelining and how does it affect assembly programming?
22What is the difference between IMUL and MUL in x86?
23What does the SHR instruction do?
24What does the NEG instruction do?
25What is the purpose of the REP prefix with string instructions?
26What does MOVS (MOVSB/MOVSW/MOVSD) do?
27What does STOS (STOSB/STOSW/STOSD) do?
28What is the Direction Flag (DF) used for?
29What is CALL FAR vs CALL NEAR?
30What is the Sign Flag (SF) set to after an operation?
31What is the Parity Flag (PF) used for?
32What is a protected mode in x86?
33What is long mode (64-bit mode) in x86-64?
34What is PUSHF/POPF used for?
35What is the difference between JBE and JLE?
36What is a procedure prologue and epilogue in 64-bit code?
37What is a vtable call in assembly terms?
38What is the hot and cold code split technique?
39What is the difference between movdqu and movdqa?
40What is instruction-level parallelism (ILP) and superscalar execution?
What is branch prediction and what is its impact on performance?
2What are CPU caches and their impact on assembly optimization?
3What is SIMD and how does it improve throughput?
4What is speculative execution and the Spectre vulnerability?
5What is the hardware prefetcher?
6What is out-of-order execution?
7What is the Tomasulo algorithm?
8What is AARCH64 (ARM64) and how does it differ from x86-64?
9What are hardware performance counters?
10What is the purpose of RDTSC in timing and what are its caveats?
11What is a micro-operation (uop) in modern Intel architecture?
12What is the µop cache (decoded instruction cache) and its benefit?
13What is ASLR and how does it interact with position-independent code (PIC)?
14What is the PLT (Procedure Linkage Table) and how does lazy binding work?
15What is the difference between PIC and PIE?
16What is Return-Oriented Programming (ROP) chain construction?
17What is a shadow stack and how does it prevent ROP?
18What is x87 FPU vs SSE floating-point and why does SSE dominate?
19What is the cache line size and why does it matter for assembly optimization?
20What is the Meltdown vulnerability in terms of assembly?