Professional Documents
Culture Documents
CS 3305 Web Programming 2 - Term 5, 2018-2019
CS 3305 Web Programming 2 - Term 5, 2018-2019
b. 0.5
c. 1
d. 2
b. function test[]
d. function test()
https://my.uopeople.edu/mod/quiz/review.php?attempt=2033153&cmid=177962 1/10
8/14/2019
Question 3
Graded Quiz Unit 6
PHP variables are weekly typed, which means that:
Correct
b. database password
https://my.uopeople.edu/mod/quiz/review.php?attempt=2033153&cmid=177962 2/10
8/14/2019
Question 5
Graded Quiz Unit 6
What will be displayed by this code?
Correct
<?php
Mark 1.00 out of FUNCTION TEST()
1.00
{
ECHO "HELLO WORLD!\n";
}
test();
?>
Select one:
a. Nothing
b. test()
c. Blinking text
d. HELLO WORLD!
c. $m = “aa”.”bb”;
d. $m = join(“aa”,”bb”);
https://my.uopeople.edu/mod/quiz/review.php?attempt=2033153&cmid=177962 3/10
8/14/2019
Question 7
Graded Quiz Unit 6
What does PHP stand for?
Correct
Select one:
a. 1
b. 3
c. Warning or no value
d. An error
https://my.uopeople.edu/mod/quiz/review.php?attempt=2033153&cmid=177962 4/10
8/14/2019
Question 9
Graded Quiz Unit 6
What is the correct way to add 1 to the $count variable?
Incorrect
b. ++count
c. count+;
b. Facebook
c. osCommerce
d. ShopNow
https://my.uopeople.edu/mod/quiz/review.php?attempt=2033153&cmid=177962 5/10
8/14/2019
Question 11
Graded Quiz Unit 6
How can comments be implemented in PHP?
Correct
Select one:
a. 1
b. 2
c. 3
https://my.uopeople.edu/mod/quiz/review.php?attempt=2033153&cmid=177962 6/10
8/14/2019
Question 13
Graded Quiz Unit 6
What will be printed?
Correct
$var=’a’;
Mark 1.00 out of $VAR=’b’;
1.00
echo “$var$VAR”;
Select one:
a. aA
b. aa
c. bB
d. ab
Select one:
a. false
b. error
c. warning
d. true
https://my.uopeople.edu/mod/quiz/review.php?attempt=2033153&cmid=177962 7/10
8/14/2019
Question 15
Graded Quiz Unit 6
How do you write "Hello World" in PHP?
Correct
c. “Hello World”
d. system.out.println(“Hello World”);
b. <?PHP ?>
d. <script></script>
https://my.uopeople.edu/mod/quiz/review.php?attempt=2033153&cmid=177962 8/10
8/14/2019
Question 17
Graded Quiz Unit 6
What character concatenates strings in PHP?
Incorrect a.
Mark 0.00 out of b.
1.00 c.
d.RIGHT
Select one:
a. ;
b. &
c. *
d. .
b. <>
c. !<
d. ===
https://my.uopeople.edu/mod/quiz/review.php?attempt=2033153&cmid=177962 9/10
8/14/2019
Question 19
Graded Quiz Unit 6
Which of the following is a valid way to start a for loop in PHP that would
Correct print out the numbers 0 through 4?
Mark 1.00 out of
1.00 Select one:
a. for($i < 5; $i = 0;)
Question 20 What function can you use to get the position of a string or character inside
Correct a string?
Mark 1.00 out of
1.00 Select one:
a. string_position()
b. length()
c. len()
d. strrpos()
◀ Self-Quiz Unit 6
Jump to...
https://my.uopeople.edu/mod/quiz/review.php?attempt=2033153&cmid=177962 10/10