You are on page 1of 5

Q1: Which artisan command would you use to create a new Laravel Controller??

a php artisan controller:make controller_name

b php artisan controller create controller_name

c None

d None

e php artisan create:controller controller_name

f php artisan make:controller controller_name

Q2: How can we add comments in PHP??

a all of the above

b // commented code to end of line

c None

d None

e /* commented code here */

f # commented code to end of line

Q3: How can you count for a particular pattern occurrences in a file??

a grep −k “pattern” <file>

b cat <file> | wc -k “pattern”

c cat <file> | wc -l “pattern”

The correct Answer is: None

e grep −c “pattern” <file>

The correct Answer is: None

Q4: Can you run several versions of PHP at the same time??
a None

b True

c None

d None

e False

f None

Q5: How do you call a function named "myFunction"??

a call function myFunction()

b None

c call myFunction()

d None

e myFunction()

f None

Q6: The main MySQL program that does all the data handling is called?

a Mysqld

b Httpd

c None

d None

e Mysql.exe

f Mysql

Q7: Text within <EM> … </EM> tag is displayed as ________?

a italic

b None
c bold

d None

e list

f indented

Q8: What does HTML stand for??

a Home Tool Markup Language

b None

c None

d None

e Hyperlinks and Text Markup Language

f Hyper Text Markup Language

Q9: Which command can be used to find a word from a text file??

a cut

b sort

c None

d find

e None

f grep

Q10: Just installed plugin crashes your Wordpress site with no access to the dashboard.
What do you do??

a Rename the specific plugin folder in /wp-content/plugins

b Reinstall Wordpress

c Reinstall the database

d Rename the specific plugin folder in /wp-includes/plugins


e Delete all plugins from /wp-content/plugins folder

f Rename the specific plugin folder in /wp-admin/plugins

Q11: Select all true statements for a node in Kubernetes??

a There is only one node in each Kubernetes cluster

b A node may be a VM or physical machine, depending on the cluster.

The correct Answer is: None

d Each node contains the services necessary to run pods and is managed by the
master components

The correct Answer is: None

f A node is a worker machine in Kubernetes, previously known as a minion

Q12: What tag is used to display a picture in a HTML page??

a Src

b Image

c None

d None

e Picture

f Img

Q13: Which of the following gives a string containing PHP script file name in which it is
called??

a $_COOKIE

b $php_errormsg

c $_PHP_SELF

d None

e $_SESSION
f None

Q14: Where is WordPress content stored??

a None

b None

c None

d WordPress stores it's content in the wp-content folder

e WordPress stores it's content in a MySQL database on the server.

f WordPress stores it's content in a MySQL database on the server.

You might also like