CompTIA
CAS-003 · Question #492
CAS-003 Question #492: Real Exam Question with Answer & Explanation
Sign in or unlock CAS-003 to reveal the answer and full explanation for question #492. The question stem and answer options stay visible for context.
Question
A developer is reviewing the following transaction logs from a web application: Username: John Doe Street name: Main St. Street number: <script>alert(`test')</alert> Which of the following code snippets should the developer implement given the above transaction logs?
Options
- Aif ($input != strcmp($var1, "<>")) {die();}
- B<form name ="form1" action="/submit.php" onsubmit="return validate()" action=POST>
- C$input=strip_tags(trim($_POST[`var1']));
Unlock CAS-003 to see the answer
You've previewed enough free CAS-003 questions. Unlock CAS-003 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.