JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
XSS interview questions
XSS interview questions
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 5
1. What defense will best help stop Cross Site Scripting (XSS)?
A. Input Validation
B. Output Encoding
C. Cryptographic Tokens
D. Rate Throttling
Show Correct Answer
Correct Answer is :
Output Encoding
2. For which input validation needs are regular expressions not enough?
A. File upload input
B. Validating a username
C. Validating a user's age
D.
Show Correct Answer
Correct Answer is :
File upload input
3. Which JavaScript functions are so dangerous that they will automatically execute untrusted data as JavaScript code?
A. Text()
B. SetTimeout()
C. Alert()
D.
Show Correct Answer
Correct Answer is :
SetTimeout()
4. What is the best way to parse JSON in the browser?
A. JSON parsing plugin
B. JavaScript: JSON.parse
C. JavaScript: eval()
D. JavaScript: innerHTML()
Show Correct Answer
Correct Answer is :
JavaScript: JSON.parse
5. What is the best design for input validation?
A. Detecting attacks and rejecting them.
B. Setting a policy for good input and rejecting everything else.
C. Setting a policy for bad input and logging them.
D. None of the above
Show Correct Answer
Correct Answer is :
Setting a policy for good input and rejecting everything else.
Similar Interview Questions
Search for latest jobs
Find Jobs