Question 5 Not yet answered Marked out of 1.00 Not flaggedFlag question Question
ID: 3730122 • Letter: Q
Question
Question 5
Not yet answered
Marked out of 1.00
Not flaggedFlag question
Question text
What function can you use to get the position of a string or character inside a string?
Select one:
a. string_position()
b. length()
c. len()
d. strrpos()
Question 6
Not yet answered
Marked out of 1.00
Not flaggedFlag question
Question text
What is the valid way to start a PHP function?
Select one:
a. function test{}
b. function test[]
c. def function test{}
d. function test()
Question 7
Not yet answered
Marked out of 1.00
Not flaggedFlag question
Question text
What will be the value of $var?
$var = 1 / 2;
Select one:
a. 0
b. 0.5
c. 1
d. 2
Question 8
Not yet answered
Marked out of 1.00
Not flaggedFlag question
Question text
How do you join strings in PHP?
Select one:
a. $m = “aa” + “bb”;
b. $m = “aa” join “bb”;
c. $m = “aa”.”bb”;
d. $m = join(“aa”,”bb”);
Question 9
Not yet answered
Marked out of 1.00
Not flaggedFlag question
Question text
What does PHP stand for?
Select one:
a. PHP: Hypertext Preprocessor
b. Private Home Page
c. Personal Home Page
d. Personal Hypertext Processor
Question 10
Not yet answered
Marked out of 1.00
Not flaggedFlag question
Question text
What will this code display?
<?php
$a = 1;
function Test()
{
echo "a = $a";
}
Test();
?>
Select one:
a. 1
b. 3
c. Warning or no value
d. An error
Explanation / Answer
Question text
What function can you use to get the position of a string or character inside a string?
Ans: d. strrpos()
Question text
What is the valid way to start a PHP function?
Ans: d. function test()
What will be the value of $var?
Ans: b. 0.5
How do you join strings in PHP?
Ans: c. $m = "aa"."bb";
What does PHP stand for?
Ans: c. Personal Home Page
What will this code display?
Ans:d. An error
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.