Explore topic-wise MCQs in Php.

This section includes 16 Mcqs, each offering curated multiple-choice questions to sharpen your Php knowledge and support exam preparation. Choose a topic below to get started.

1.

When a user confirms that he wishes to delete an entry, that entry’s URL is passed to a function which removes the entry from the __________

A. index.php
B. function.inc.php
C. database
D. admin.php
Answer» D. admin.php
2.

Your confirmation form submits your choice, via the _______ method, to ________

A. GET index.php
B. GET admin.php
C. POST index.php
D. POST admin.php
Answer» E.
3.

To declare the function to confirm the deletion you need to add the code to __________

A. inc.php
B. functions.inc.php
C. include.php
D. functions.include.php
Answer» C. include.php
4.

To identify entries marked for deletion, you check whether $_GET[‘page’] == ‘delete’ inside __________

A. index.php
B. index.ini
C. admin.php
D. .htaccess
Answer» D. .htaccess
5.

You need to check whether ______ is set, to determine whether you’re editing an entry or creating a new one.

A. $_GET[‘url’]
B. $_SET[‘url’]
C. $_GET[‘admin’]
D. $_SET[‘admin’]
Answer» B. $_SET[‘url’]
6.

([\w-]+) will match ___________

A. one word characters
B. one or more word characters
C. one or more word characters and/or hyphens
D. one or more word characters and hyphens
Answer» D. one or more word characters and hyphens
7.

The (|/) tells the server to match ___________

A. nothing
B. forward slash
C. backward slash
D. either nothing or a forward slash
Answer» E.
8.

The URLs in the administrative links won’t mean anything to admin.php unless you modify _________

A. .htaccess
B. .adminaccess
C. .htmlaccess
D. .urlaccessView answer
Answer» B. .adminaccess
9.

When you are building administrative links you’ll need to accept two arguments, which of the following are they?

A. URL of previous entry and URL of the entry you are working with
B. The current page and previous page
C. URL of previous entry and previous page
D. The current page and URL of the entry you are working with
Answer» E.
10.

WHEN_A_USER_CONFIRMS_THAT_HE_WISHES_TO_DELETE_AN_ENTRY,_THAT_ENTRY‚ÄÖ√Ñ√∂‚ÀÖ√Ë‚ÀÖ¬•S_URL_IS_PASSED_TO_A_FUNCTION_WHICH_REMOVES_THE_ENTRY_FROM_THE___________?$#

A. index.php
B. function.inc.php
C. database
D. admin.php
Answer» D. admin.php
11.

Your confirmation form submits your choice, via the _______ method, to _______?

A. GET index.php
B. GET admin.php
C. POST index.php
D. POST admin.php
Answer» E.
12.

To identify entries marked for deletion, you check whether $_GET[‘page’] == ‘delete’ inside __________$

A. index.php
B. index.ini
C. admin.php
D. .htaccess
Answer» D. .htaccess
13.

You need to check whether ______ is set, to determine whether you’re editing an entry or creating a new one.$

A. $_GET[‘url’].
B. $_SET[‘url’].
C. $_GET[‘admin’].
D. $_SET[‘admin’].
Answer» B. $_SET[‚Äö√Ñ√∂‚àö√ë‚àö‚â§url‚Äö√Ñ√∂‚àö√ë‚àö¬•].
14.

The URLs in the administrative links won’t mean anything to admin.php unless you modify _________$

A. .htaccess
B. .adminaccess
C. .htmlaccess
D. .urlaccess
Answer» B. .adminaccess
15.

Once your application can generate administrative links, you need to load those links into _________

A. php.ini
B. index.ini
C. index.php
D. start.php
Answer» D. start.php
16.

When you are building administrative links you’ll need to accept two arguments, which of the following are they?

A. URL of previous entry and URL of the entry you are working with
B. The current page and previous page
C. URL of previous entry and previous page
D. The current page and URL of the entry you are working with
Answer» E.