Web Development — Test 3
Page 1 of 3
Question 1
What does "b" + "a" + +"a" + "a" evaluate to?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 2
Which approach is the correct primary defense against SQL injection?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 3
An attacker submits <script>steal()</script> in a comment field, and it runs in other users' browsers. What is this attack?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 4
What is CSRF (Cross-Site Request Forgery)?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 5
How should user passwords be stored?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 6
Does a correct CORS configuration protect an API from being called by scripts or tools such as curl?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 7
Which HTTP header helps prevent clickjacking?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 8
What does a Content Security Policy (CSP) primarily mitigate?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 9
Which statement about sessions is correct?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 10
Which of these languages traditionally runs on the server side?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026