Skip to main content

Website Security MCQs with Explanations

Practice high-yield Programming & Software Development MCQs on Website Security with worked academic solutions for FPSC, PPSC, NTS, NITB, PTS.

Questions
10
Difficulty Level
Exam-Level
Target Exams
FPSC, PPSC, NTS...
Estimated Time
12 mins
Exam-Level FPSC PPSC NTS NITB PTS
Verified for Commission Syllabus • Oct 14, 2026
10

Verified Practice Questions

Interactive test mode with detailed academic worked solutions

Live Progress | 0/10 answered
✓ 0 correct ✗ 0 wrong 0% score
Question 1 of 10
★ FPSC ★ PPSC

Which one of the following statements should be used to disable just the fopen(), and file() functions?

Question 2 of 10
★ FPSC ★ PPSC

Which one of the following statements should be used to disable the use of two classes administrator and janitor?

Question 3 of 10
★ FPSC ★ PPSC

What is the default value of max_execution_time directive? This directive specifies how many seconds a script can execute before being terminated.

Question 4 of 10
★ FPSC ★ PPSC

The memory_limit is only applicable if _______ is enabled when you configure PHP. Fill in the blank.

Question 5 of 10
★ FPSC ★ PPSC

Which Apache directive outputs Apache’s server version, server name, port and compile-in modules?

Question 6 of 10
★ FPSC ★ PPSC

Which directive determines which degree of server details is provided if the ServerSignature directive is enabled?

Question 7 of 10
★ FPSC ★ PPSC

Which directive should we disable to obscure the fact that PHP is being used on our server?

Question 8 of 10
★ FPSC ★ PPSC

Say I want to change the extension of a PHP file, which of the following statements should I edit to change from .php to .html in the httpd.conf file?

Question 9 of 10
★ FPSC ★ PPSC

The developers of PHP deprecated the safe mode feature as of which PHP version.

Question 10 of 10
★ FPSC ★ PPSC

Suppose all web material is located within the directory /home/www. To prevent users from viewing and manipulating files such as /etc/password, which one of the following statements should you use?

✓ Link copied to clipboard
Continue Your Practice

Advance Html — Part 1

Master the next curriculum module with 40 exam-standard MCQs.

Next Practice Set →

💡 Examiner's Advisory for Programming & Software Development

In competitive commission exams (FPSC, PPSC, KPPSC, SPSC, CSS, PMS), questions are frequently phrased with distractor options designed to catch rote learners. Whenever you answer an MCQ, read the Detailed Academic Explanation and Conceptual Anchor to understand why the remaining options are incorrect.

More Modules in Programming & Software Development

View All →
📚

Study Guides

Topic summaries and syllabus breakdown

Explore Guides →
🎯

Complete Library

Search through 78,000+ verified MCQs

Browse Library →
📱

Mobile App

Offline mock tests and instant bookmarks

Get Mobile App →