You are on page 1of 5

Q1: What is the correct HTML for adding a background color??

a <body bg="yellow">

b None

c <body style bg="yellow">

d <background>yellow</background>

e None

f <body style="background-color:yellow;">

Q2: Which command can be used to know the terminal type??

The correct Answer is: None

b who

c terminal

d tty

The correct Answer is: None

f pts

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

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

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

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

d None

e None

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

Q4: Which SQL statement is used to extract data from the database??
a None

b SELECT

c ACCESS

d GET

e OPEN

f ACQUIRE

Q5: How can you create a static page with WordPress??

a None

b None

c To create a static page in WordPress, in the page section you have to upload a
HTML file to the server in the theme folder, and then select that as your template.

d To create a static page in WordPress, in the page section you have to upload a PHP
file to the server in the theme folder, and then select that as your template.

e None

f To create a static page in WordPress, in the page section you have to upload a PERL
file to the server in the theme folder, and then select that as your template.

Q6: PHP makes use of mail() function to send emails. Which of the mentioned ARE PART of
it's arguments?

a parameters

b headers

c number of recepients

d message

e to

f subject

Q7: Which query will return values containing strings "apple", "banana" or "orange" in the
database??
a None

b SELECT * FROM table WHERE field LIKE ‘%apple%’ OR field LIKE ‘%banana%’ OR
field LIKE ‘%orange%’;

c SELECT * FROM table WHERE field = ‘?apple?’ OR field = ‘?banana?’ OR field = ‘?


orange?’;

d SELECT * FROM table WHERE field = ‘%apple%’ OR field = ‘%banana%’ OR field =


‘%orange%’;

e SELECT * FROM table WHERE field REGEXP ‘apple|banana|orange’;

f None

Q8: In order to add a new column to an existing table in SQL, which command do we need to
use??

a ALTER COLUMNS

b MODIFY TABLE

c None

d EDIT TABLE

e None

f ALTER TABLE

Q9: Which of the following function is used to get length of a string??

a length

The correct Answer is: None

c size()

d None of the above.

The correct Answer is: None

f strlen()
Q10: How to upload a docker image with the image name mentioned in the command to
Docker Hub.?

The correct Answer is: None

b $ docker upload geekflare/httpd_image

The correct Answer is: None

d $ docker put geekflare/httpd_image

e $ docker push geekflare/httpd_image

The correct Answer is: None

Q11: How to kill a container??

a docker kill <container_id>

b None

c None

d docker terminated <container_id>

e $ docker --kill <container_id>

f None

Q12: Is it possible to use COM component in PHP??

a None

b None

c False

d None

e True

f None

Q13: Some tags enclose the text. Those tags are known as?
a Pair tags

b Double tags

c Couple tags

d Single tags

e None

f None

Q14: Which command can be used to change file access permission bits??

The correct Answer is: None

b umask

c chown

d chperm

e chmod

The correct Answer is: None

You might also like