Module 6 Quizzes
PHP Quiz
Question # 1
A. PHP server scripts are surrounded by delimiters, which one?
A1. <script>...</script>
A2. <?php>...</?>
A3. <?php...?>
A4. <&>...</&>
A. PHP server scripts are surrounded by delimiters, which one?
A1. <script>...</script>
A2. <?php>...</?>
A3. <?php...?>
A4. <&>...</&>
(Answer: A3)
Question # 2
B. How do you write "Hello World" in PHP
B1. echo "Hello World";
B2. Document.Write("Hello World");
B3. "Hello World";
(Answer: B1)
Question # 3
C. All variables in PHP start with which symbol?
C1. !
C2. $
C3. %
C4. &
C5. Not true
(Answer: C2)
Question # 4
D. What is the correct way to end a PHP statement?
D1. ;
D2. .
D3. New line
D4. </php>
(Answer: D1)
CSS Quiz
Question # 1
A. What is the correct CSS syntax for making all the <span> elements bold?
A1. span {text-size:bold}
A2. span {font-weight:bold}
A3. <span style="font-size:bold">
A4. <span style="text-size:bold">
A. What is the correct CSS syntax for making all the <span> elements bold?
A1. span {text-size:bold}
A2. span {font-weight:bold}
A3. <span style="font-size:bold">
A4. <span style="text-size:bold">
(Answer: A2)
Question # 2
B. What property is used to change the text color of an element?
B1. fontcolor:
B2. font-color:
B3. color:
B4. textcolor
B. What property is used to change the text color of an element?
B1. fontcolor:
B2. font-color:
B3. color:
B4. textcolor
(Answer: B3)
Question # 3
C. The # symbol specifies that the selector is?
C1. Class
C2. Tag
C3. First
C4. id
(Answer: C4)
Comments
Post a Comment