Questions
Question 1 Multiple Choice (Single Answer)
Include files must have the file extension ".inc"
- True
- False
Question 2 Multiple Choice (Single Answer)
In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
- True
- False
Question 3 Multiple Choice (Single Answer)
What is the correct way to include the file "time.inc" ?
- <!--include file="time.inc"-->
- <?php include_file("time.inc"); ?>
- <?php require("time.inc"); ?>
- <% include file="time.inc" %>
Question 4 Multiple Choice (Single Answer)
What is the correct way to create a function in PHP?
- function myFunction()
- new_function myFunction()
- create myFunction()
Question 5 Multiple Choice (Single Answer)
What is the correct way to connect to a MySQL database?
- mysql_open("localhost");
- connect_mysql("localhost");
- dbopen("localhost");
- mysql_connect("localhost");
Question 6 Multiple Choice (Single Answer)
What is the correct way to add 1 to the $count variable?
- count++;
- $count++;
- ++count
- $count =+1
Question 7 Multiple Choice (Single Answer)
PHP can be run on Microsoft Windows IIS(Internet Information Server):
- True
- False
Question 8 Multiple Choice (Single Answer)
In PHP 5, MySQL support is enabled by default:
- True
- False
Question 9 Multiple Choice (Single Answer)
Which one of these variables has an illegal name?
- $my-Var
- $myVar
- $my_Var
Question 10 Multiple Choice (Single Answer)
Which of the following regular expressions will match the string no.no.no?
- no?no?no
- nonono*
- ........
- ........