You are on page 1of 3

Q1: How to run the docker image mentioned in the command.

Which will create a docker


container in which the Apache HTTP server will run.?

a None

b None

c $ docker run -it -d httpd

d $ docker run -it -d http img

e $ docker run -it -d --httpd

f None

Q2: How to mark a node called my-node as schedulable in Kubernetes??

a None

b None

c kubectl uncordon my-node

d kubectl available my-node

e kubectl up my-node

f kubectl schedulable my-node

Q3: Which of the following will reset the MySQL password for a particular user??

a UPDATE mysql.user SET Password=RESET(‘password’) WHERE User=’username’;

b UPDATE mysql.user SET Password=PASSWORD(‘password’) WHERE


User=’username’;

c None

d None of the above

e None

f UPDATE mysql.user SET Password=’password’ WHERE User=’username’;

Q4: How to delete a directory in Linux??


a delete

b remove

c None

d rmdir

e ls

f None

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

a grep −k “pattern” <file>

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

c grep −c “pattern” <file>

The correct Answer is: None

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

The correct Answer is: None

Q6: What is the function to get website url in wordpress??

a get_website_url();

b None

c get_url();

d get_site_url();

e None

f None

Q7: How can we check if the value of a given variable is a number??

a numeric()
b None

c None

d numeric(true)

e is_numeric()

f None

You might also like