ExamVeda
Login
Home
21
When you are building administrative links you’ll need to accept two arguments, which of the following are they?
Discuss
Answer & Solution
Answer: Option D
Solution:
Your function should look like this: function adminLinks($page, $url) { //Build admin links here }
22
Once your application can generate administrative links, you need to load those links into _________
Discuss
Answer & Solution
Answer: Option C
Solution:
You place your administrative links only on the full display of an entry, so you must place the call to load information from adminLinks() within a conditional statement
23
The URLs in the administrative links won’t mean anything to admin.php unless you modify _________
Discuss
Answer & Solution
Answer: Option A
Solution:
You need to modify .htaccess with an additional rule that handles URLs passed in a link to admin.php.
24
The (|/) tells the server to match ___________
Discuss
Answer & Solution
Answer: Option D
Solution:
The vertical pipe character (|) is the regular expression equivalent of “or”.
25
([w-]+) will match ___________
Discuss
Answer & Solution
Answer: Option C
Solution:
([w-]+), will match one or more word characters and/or hyphens—which is what your custom entry URLs consist.
26
You need to check whether ______ is set, to determine whether you’re editing an entry or creating a new one.
Discuss
Answer & Solution
Answer: Option A
Solution:
If an entry is being edited, you need to load the existing entry data and save each piece in a variable.
27
To identify entries marked for deletion, you check whether $_GET[‘page’] == ‘delete’ inside __________
Discuss
Answer & Solution
Answer: Option C
Solution:
In admin.php, you check whether $_GET[‘page’] == ‘delete’, then pass the entry URL to be deleted to a function.
28
Your confirmation form submits your choice, via the _______ method, to ________
Discuss
Answer & Solution
Answer: Option D
Solution:
To process this, you need to add an additional block of code to the top of admin.php that determines what choices you’ve made and act accordingly.
29
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 __________
Discuss
Answer & Solution
Answer: Option C
Solution:
If the function is successful, you send the user to the main page. If it fails, you stop execution of the script and display an error, letting the user know that something went wrong.
30
Which of the following DBMSs do not have a native PHP extension?
Discuss
Answer & Solution
Answer: Option E
No explanation is given for this question. Let's Discuss on Board