0% found this document useful (0 votes)
14 views

4 Lecture For ODXO

The document contains 14 multiple choice questions related to concepts in computing including Docker, Kubernetes, PHP and general programming topics. The questions test knowledge of commands like sed, kubectl and docker as well as concepts like containerization, configuration management, and programming fundamentals.

Uploaded by

mariasogaleria24
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

4 Lecture For ODXO

The document contains 14 multiple choice questions related to concepts in computing including Docker, Kubernetes, PHP and general programming topics. The questions test knowledge of commands like sed, kubectl and docker as well as concepts like containerization, configuration management, and programming fundamentals.

Uploaded by

mariasogaleria24
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Q1: What is the command ‘sed’ is used for??

a To perform arithmetic calculations

b None of the above

c Is a text editor.

d None

e To mount a device

f Used as text filter

Q2: Which attribute is used with an img tag to display the text if image could not load in
browser??

a None

b id

c None

d alt

e description

f name

Q3: How do you create secrets in Kubernetes??

a kubectl generate secret generic db-user-pass --from-file=./username.txt --from-


file=./password.txt

The correct Answer is: None

The correct Answer is: None

The correct Answer is: None

The correct Answer is: None

f kubectl create secret generic db-user-pass --from-file=./username.txt --from-


file=./password.txt
Q4: Which of the following is a hosted service that provides a Registry with build and
testing facilities for Dockerized application images, tools to help you set up and manage
your host infrastructure.?

a Docker Universal Control Plane

b Docker Compose

c None

d Docker Hub

e None

f Docker Cloud

Q5: Type Hinting was introduced in which version of PHP??

a None

b PHP 6

c PHP 7

d PHP 5

e None

f PHP 4

Q6: How to change the priority of a swap file/partition to 10?

The correct Answer is: None

b swapon -p 10 /path/to/swapfile

c swapon +10 /path/to/swapfile

The correct Answer is: None

e We can't change the priority of swap partions

f swapon -P 10 /path/to/swapfile
Q7: Suppose you have 3 containers running and out of these, you wish to access one of
them. How do you access a running container??

a $ docker exec -it <container id> bash

b $ docker exec --it <container id>

The correct Answer is: None

The correct Answer is: None

e $ docker exec it <container id> bash

The correct Answer is: None

Q8: How do you find the number with the highest value of x and y??

a None

b None

c Math.ceil(x, y)

d top(x, y)

e ceil(x, y)

f Math.max(x, y)

Q9: The kube-apiserver on Kubernetes master is designed to scale:?

a kube-apiserver is not used for scaling

b None

c Vertically

d Horizontally

e None

f None

Q10: Which is not true about Docker Hub??


The correct Answer is: None

b Docker Hub is a totally private repository

c Docker Hub is the world's largest library and community for container images

d Docker Hub provides an easy way to create, manage, and deliver your teams'
container applications

The correct Answer is: None

The correct Answer is: None

Q11: Which command will you use to pull a Docker image??

a None

b docker image-pull IMAGE_NAME

c None

d docker get IMAGE_NAME

e docker start IMAGE_NAME

f docker pull IMAGE_NAME

Q12: Can we export data into an Excel file??

a None

b None

c False

d None

e True

f None

Q13: What is WordPress in PHP??

a An open source CMS (Content Management System)

b None
c Framework for designing dynamic pages

d framework and distribution system for reusable PHP components

e None

f Set of library enriched with fucntions

Q14: How to compares the current state of the cluster against the state that the cluster
would be in if the manifest was applied in Kubernetes??

a kubectl show -f ./my-manifest.yaml

b None

c kubectl state -f ./my-manifest.yaml

d kubectl diff -f ./my-manifest.yaml

e kubectl log -f ./my-manifest.yaml

f None

You might also like