nerdexam
Cisco

350-701 · Question #33

Which attack is commonly associated with C and C++ programming languages?

The correct answer is D. buffer overflow. Buffer overflow (D) is the classic vulnerability tied to C and C++ because these languages give programmers direct memory management without built-in bounds checking - writing past the end of an allocated buffer can overwrite adjacent memory, enabling code execution exploits…

Submitted by omar99· Mar 30, 2026Security Concepts

Question

Which attack is commonly associated with C and C++ programming languages?

Options

  • Across-site scripting
  • Bwater holing
  • CDDoS
  • Dbuffer overflow

How the community answered

(24 responses)
  • A
    4% (1)
  • D
    96% (23)

Explanation

Buffer overflow (D) is the classic vulnerability tied to C and C++ because these languages give programmers direct memory management without built-in bounds checking - writing past the end of an allocated buffer can overwrite adjacent memory, enabling code execution exploits.

Why the distractors are wrong:

  • A (Cross-site scripting) is a web vulnerability involving injected JavaScript in browsers - it's language-agnostic and unrelated to memory management.
  • B (Water holing) is a social engineering tactic where attackers compromise websites frequented by a target group - no programming language connection.
  • C (DDoS) is a network-layer attack flooding a target with traffic - it's not tied to any specific language.

Memory tip: Think "C languages = manual memory = buffer overflow." The phrase "C gives you enough rope to hang yourself" refers precisely to this - freedom over memory without safety nets.

Topics

#Buffer Overflow#C++ Vulnerabilities#Application Security

Community Discussion

No community discussion yet for this question.

Full 350-701 Practice