PHP Quiz for dummies #1 - Statistics

General Stats
  • This quiz has been taken 61 times
  • The average score is 8 of 14
Answer Stats
Question Answer % Correct
How do you declare a variable in PHP? $variable = 1;
100%
Which loops does PHP support? All of the above
89%
How do you define a class in PHP? class Fruits {}
74%
How do you declare a function in PHP? function myFunction(parameters) {body}
74%
How do you declare a array in PHP? $array = array();
70%
How do you import a file in PHP? include 'file.php';
67%
What does PHP stand for? PHP: Hypertext Preprocessor
48%
How do you access the headers, paths, and script locations. $_SERVER
48%
Select the correct code. (Can be more than 1) All of the above
44%
How do you call a private static variable inside a function of a class? self::$variable
41%
How do you declare a constructor in PHP? function __construct() {}
37%
Which one of these is a datatype in PHP? All of the above
33%
How do you read a file in PHP? readfile(filename);
22%
Which of the below is correct? Try/catch does not catch errors.
15%
No matching quizzes found
Score Distribution
Percent of People with Each Score
Percentile by Number Answered
Your Score History
You have not taken this quiz