You are on page 1of 3

Q1: What is array_keys() used for??

a Checks if the specified key exists in the array

b Returns all the keys of an array

c None

d None

e Compares array keys, and returns the matches

f Both b and c above

Q2: Which of the following is NOT a magic predefined constant??

a __FILE__

b __LINE__

c __DATE__

d None

e __CLASS__

f None

Q3: Following Docker command: eval $(docker-machine env default) is used to:?

a Commit changes done in a Docker image

b Activate default VM machine

c Build an image

d None

e Access a running container

f None

Q4: How to remove the docker image with the docker image id mentioned in the command?
a None

b $ docker rmi -rf fce289e99eb9

c $ docker rmi fce289e99eb9

d None

e None

f $ docker rmi rf fce289e99eb9

Q5: When patching resources in Kubernetes, how to partially update a node??

a kubectl patch node k8s-node-1 -p '{"patch":{"unschedulable":true}}'

b None

c kubectl patch node k8s-node-1 -p '{"spec":{"unschedulable":true}}'

d kubectl patch node k8s-node-1 -p '{"spec":{"unschedulable":false}}'

e kubectl patch node k8s-node-1 -pr '{"spec":{"unschedulable":true}}'

f None

Q6: How to list all services sorted by name in Kubernetes??

a kubectl get services --sort=.name

b kubectl get services --sort-by=.metadata.name

c None

d None

e kubectl get services --sort-by=name

f kubectl get services --sort-by=.service.name

Q7: All elements are identified by their __________ and are marked up using either start tags
and end tags or self-closing tags?

a Tag Names

b None
c Attribute Names

d None

e None of the mentioned

f Class Names

Q8: Which command is used to build a Docker image??

a docker built username/repository_name:1.0.1

b docker build -t username/repository_name:1.0.1

c None

d None

e docker image -t create username/repository_name:1.0.1

f docker create username/repository_name:1.0.1

Q9: How to list the contents of a folder??

a None

b print

c pwd

d None

e list

f ls

You might also like