Free Online Directory Security and Compiler Design MCQs - MCQs Answers

Security and Compiler Design MCQs

30 min Score: 0 Attempted: 0/30 Subscribe
1. What is the primary role of a compiler in security?





2. Which type of attack can a compiler help mitigate?





3. How can a compiler prevent buffer overflow attacks?





4. What is a “stack smashing” attack?





5. Which compiler feature can help detect unsafe pointer usage?





6. What is the role of static analysis in compiler security?





7. Which of the following is a common compiler-level defense against format string vulnerabilities?





8. What is a stack canary?





9. What is Control Flow Integrity (CFI) in compiler security?





10. Which type of attack modifies a program’s return address to gain control?





11. Which compiler technique helps defend against ROP attacks?





12. What is the main goal of code obfuscation in compilers?





13. How does Address Space Layout Randomization (ASLR) enhance security?





14. Which compiler-level technique can help prevent integer overflow vulnerabilities?





15. What is “sandboxing” in compiler-generated code?





16. Which of the following is a compiler defense against format string attacks?





17. How can compilers assist in preventing use-after-free errors?





18. Which is a benefit of automatic memory management for security?





19. Which compiler warning is commonly used to enhance security?





20. What is the role of Control Flow Graph (CFG) analysis in compiler security?





21. Which technique helps prevent stack-based buffer overflows at compile-time?





22. How does pointer sanitization improve security in compiled programs?





23. Which compiler-generated security feature prevents execution of injected code in the stack?





24. Which of the following is a compiler-level mitigation for heap overflow attacks?





25. What is a common compiler strategy for mitigating side-channel attacks?





26. What is “code injection” in the context of compiler security?





27. Which compiler analysis can detect potential null pointer dereferences?





28. How does stack layout randomization improve security?





29. Which compiler technique helps prevent format string vulnerabilities in C/C++?





30. What is a key limitation of compiler-based security?





Leave a Comment

All copyrights Reserved by MCQsAnswers.com - Powered By T4Tutorials