You are on page 1of 4

Q1: Which arithmetic operator you can not use??

a+

b-

c\

d%

e All are valid

f*

Q2: What is the difference between Numeric and Associative?

a The Numeric arrays can store numbers, strings and any object but their index will
be represented by numbers while the Associative arrays each element in the main array can
also be an array.

The correct Answer is: None

The correct Answer is: None

d There are no Associative arrays

e The Numeric arrays can store numbers, strings and any object but their index will
be represented by numbers while the Associative arrays have their index stored as string.

f The Numeric and Associative arrays differ only in the maximum allowed objects in
them.

Q3: Which of the following is a declaration for an HTML document??

a <!DOCTYPE Html>

b <html>.....</html>

c None

d <body>.....</body>

e None

f <p>.....</p>
Q4: Which of these elements are all <table> elements??

a <thead><body><tr>

b None

c <table><head><tfoot>

d <table><tr><tt>

e None

f <table><tr><td>

Q5: Which file is the single most important file in Wordpress??

a wp-config.php

b page.php

c header.php

d wp-setting.php

e None

f None

Q6: Distinguish between cmp and diff commands??

a ‘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.

b ‘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.

c ‘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.

The correct Answer is: None

The correct Answer is: None

f ‘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.
Q7: How is the comparison of objects done in PHP??

a We use the operator '===' to test two objects are instanced from the same class
and have same attributes and equal values.

b None

c None

d We use the operator '==' to test two objects are instanced from the same class and
have same attributes and equal values.

e We use the operator '=' to test two objects are instanced from the same class and
have same attributes and equal values.

f None

Q8: Which of the following are not Numeric column types??

a DOUBLE

b SMALLINT

c DECIMAL

d LARGEINT

e BIGINT

f None

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

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

b Both of the mentioned

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

The correct Answer is: None

e None of the mentioned


The correct Answer is: None

Q10: What type of join is needed when you wish to return rows that have matching values??

a Outer join

b Natural join

c All of the mentioned.

d Equi-join

e None

f None of the mentioned.

Q11: Which command can be used to count characters in a text file??

a wc

b None

c None

d count

e fsize

f ccount

Q12: Which command would show you the logs of a running pod in Kubernetes??

a kubectl show -l pod-name

b kubectl print pod-name

c kubectl logs pod-name

d kubectl log pod-name

The correct Answer is: None

The correct Answer is: None

You might also like