You are on page 1of 4

Q1: What will be the effect of the query SELECT c.*,e.

* FROM clients c INNER JOIN


employees e ON c.emp_no = e.emp_no;?

a return only records that have matching emp_no values in both tables

b None

c None

d return all the records from the clients table and only those that match the emp_no
from the employees table

e return all the records from the employees table and only those that match the
emp_no from the clients table

f The query will generate an error

Q2: In which directory by default user home directories are created??

a /home

b /tmp

c /usr

d /etc

The correct Answer is: None

f /user

Q3: Which of the following is a WordPress function used to execute a database query??

a None

b None

c <?php $wpdb->mysql_query('query'); ?>

d <?php $wpdb->run_query('query'); ?>

e <?php $wpdb->query('query'); ?>

f <?php $wpdb->fetch('query'); ?>


Q4: Why is wordpress.com considered more secure than wordpress.org??

a None

b because they limit the themes and also does not allow installing plugins.

c None

d None

e because they limit the site proxy settings

f because it is SSL encrypted

Q5: Which of the following method of Exception class retrieve the error message when
error occurred??

a getError()

b getCode()

c getMessage()

d getFile()

The correct Answer is: None

f getLine()

Q6: Which of the following function returns a text in title case from a variable??

a .ucword($var)

b None

c ucwords($var)

d None

e toupper($var)

f .upper($var)

Q7: SQL (Structured Query Language) is:?


a the language of queries by pattern

b imperative programming language

c None

d DBMS (DataBase Management System)

e the language of structured queries

f None

Q8: MySQL supports multiple database storage engines.?

a None

b None

c None

d False

e True

f None

Q9: Which of the following is true for a Persistent Cookie??

a A persistent cookie is a data file capable of providing websites with user


preferences, settings and information for future visits.

b A persistent cookie is permanently stored in a cookie file on the browser's


computer.

c A cookie that is stored on a user's hard drive until the next login

d A persistent cookie is temporary stored in a cookie file on the browser's computer.

e Persistent cookies provide convenient and rapid access to familiar objects, which
enhances the user experience (UX)

f The next time you visit a particular site which you have already done it will not
recognise you and will treat you as a completely new visitor as long as it hasn't been more
than 2 days

Q10: If you wish to use a base image and make modifications or personalize it, how do you
do that??
a docker --pull <image_name>

b docker <image_name>

c None

d None

e None

f docker pull <image_name>

Q11: Which of the following variable is used to get user's browser and operating system
details in PHP??

a None of the above.

b HTTP_USER_AGENT

c None

d AGENT

e None

f USER

You might also like