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

4 Homework Help For GAHU

This document contains 15 multiple choice questions about various computing topics such as PHP, HTML, SQL, Docker, and Linux commands. It tests knowledge on commenting in PHP, changing swap priority files, opening files in PHP, HTML being a subset of SGML, using ternary operators in PHP, the BETWEEN keyword in SQL, functions in WordPress, distinguishing cmp and diff commands, adding background colors in HTML, stripping whitespace from strings, the purpose of kube-controller-manager, the nohup command, displaying files in octal format, and Docker container restart behavior.

Uploaded by

자이
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

4 Homework Help For GAHU

This document contains 15 multiple choice questions about various computing topics such as PHP, HTML, SQL, Docker, and Linux commands. It tests knowledge on commenting in PHP, changing swap priority files, opening files in PHP, HTML being a subset of SGML, using ternary operators in PHP, the BETWEEN keyword in SQL, functions in WordPress, distinguishing cmp and diff commands, adding background colors in HTML, stripping whitespace from strings, the purpose of kube-controller-manager, the nohup command, displaying files in octal format, and Docker container restart behavior.

Uploaded by

자이
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Q1: What is a correct way to add a comment in PHP??

a <comment>...</comment>

b <!--...-->

c None

d /*...*/

e None

f *\...\*

Q2: In which file, can we permanently change the SWAP priority?

The correct Answer is: None

b /etc/prswap

c /etc/fstab

d /etc/boot.conf

The correct Answer is: None

f /etc/swappriority

Q3: Which of the following function opens a file??

a None

b filesize()

c fread()

d file_exist()

e fopen()

f None

Q4: HTML Is a subset of?


a None

b None

c None Of These

d SGML

e SGMT

f SGMD

Q5: Docker containers and images are included in Plesk Backup and migrated by Plesk
Migrator.?

The correct Answer is: None

The correct Answer is: None

The correct Answer is: None

The correct Answer is: None

e True

f False

Q6: How is the ternary conditional operator used in PHP??

a Expression_1?Expression_2 ? Expression_3;

b None

c Expression_1:Expression_2 : Expression_3;

d None

e Expression_1?Expression_2 : Expression_3;

f None

Q7: The SQL keyword BETWEEN is used??

a None

b None Of The Above


c None

d To Limit The Columns Displayed

e For Ranges

f As A Wildcard

Q8: Which of the listed actions and filter hooks are functions in WordPress??

a None

b open_filter() and close_action()

c doing_filter() and doing_action()

d has_filter() and has_action()

e None

f apply_filters_ref_array() and do_action_ref_array()

Q9: Distinguish between cmp and diff commands??

The correct Answer is: None

b ‘cmp’ shows all the differences from two file whereas ‘diff’ shows the only the first
occurring difference. The said is applicable only if differences between the files do exist.

c ‘cmp’ shows the last difference from two file whereas ‘diff’ shows the only the first
occurring difference. The said is applicable only if differences between the files do exist.

The correct Answer is: None

e ‘diff’ shows all the differences from two file whereas ‘cmp’ shows the only the first
occurring difference. The said is applicable only if differences between the files do exist.

f ‘diff’ shows the last difference from two file whereas ‘cmp’ shows the only the first
occurring difference. The said is applicable only if differences between the files do exist.

Q10: What is the correct HTML for adding a background color??

a None

b <body bg="yellow">
c <background>yellow</background>

d None

e <body style bg="yellow">

f <body style="background-color:yellow;">

Q11: Which function is used to Strip whitespace (or other characters) from the beginning
and end of a string??

a strip_str

b trim_str

c None

d trim

e strip

f None

Q12: What Is The Use Of Kube-controller-manager??

a kube-controller-manager embeds the core control loop which is a non-terminating


loop that regulates the state of the system.

The correct Answer is: None

The correct Answer is: None

d kube-controller-manager embeds the core control loop which is a terminating


loop that regulates the state of the system.

The correct Answer is: None

The correct Answer is: None

Q13: Explain the purpose of nohup command.?

The correct Answer is: None

The correct Answer is: None


The correct Answer is: None

d To start the command after the user who issues the command has logged out.

e To keep the command running even after the user who issues the command has
logged out.

f To start the command after a certain statement has been approved.

Q14: Which command can be used to display file contents in octal??

a octal

b od

c oshow

d None

e None

f oct

Q15: Can a Docker container restart by itself??

The correct Answer is: None

b False

c True

The correct Answer is: None

The correct Answer is: None

The correct Answer is: None

You might also like