1 Problems For DJCT

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Q1: When is the switch statement used:?

The correct Answer is: None

b The switch statement is used to avoid long blocks of if..elseif..else code

The correct Answer is: None

d The switch statement is used to avoid long blocks of loops like do...while code.

e The switch statement is used when statements like if..elseif..else do not work.

The correct Answer is: None

Q2: Do deactivated plugins slow down a WordPress site??

a None

b Even deactivated plugins slow down your website

c Deactivated do not plugins slow down your website

d None

e None

f None

Q3: Which of the following is correct about constants vs variables in PHP??

a There is no need to write a dollar sign ($) before a constant, where as in Variable
one has to write a dollar sign.

b None of the mentioned

c Constants cannot be defined by simple assignment, they may only be defined using
the define() function.

The correct Answer is: None

e Both of the mentioned

The correct Answer is: None

Q4: What does the unset() function do??


a None

b The unset() function is not dedicated for variable management. It will make a
variable defined.

c None

d None

e The unset() function is dedicated for variable management. It will make a variable
undefined.

f None

Q5: Which HTML element is used to define the description Data??

a None

b <dt>

c None

d <li>

e <dd>

f <dl>

Q6: You use a container, edit it, and update it?

a True

b None

c None

d None

e False

f None

Q7: If we wish to mount a directory with Read Only option, which of the following is
correct?
a mount ext4 -no-read-only /mnt/folder /path/to-dir

b mount -t ext4 -o noexect,ro /path/to-dir /mnt/folder

c mount ext4 noexect,ro /path/to-dir /mnt/folder

d mount -t ext4 -o noexect,ro /mnt/folder /path/to-dir

e mount ext4 -no-read-only /mnt/folder /path/to-dir

f mount ext4 -no-read-only /path/to-dir /mnt/folder

Q8: INSERT keyword is used for:?

a adding data

b None

c to change data

d None

e to select data

f manage users

Q9: Which of the following is true for Kube-proxy??

The correct Answer is: None

The correct Answer is: None

c Kube-proxy is a network proxy that runs only on the master node

The correct Answer is: None

e Kube-proxy can run on each and every node and can do simple TCP/UDP packet
forwarding across backend network service.

The correct Answer is: None

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

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

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

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

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

f None

You might also like