PHP Quiz for dummies #1 - Statistics

General Stats
  • This quiz has been taken 63 times
  • The average score is 7 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
86%
How do you define a class in PHP? class Fruits {}
72%
How do you declare a function in PHP? function myFunction(parameters) {body}
72%
How do you declare a array in PHP? $array = array();
69%
How do you import a file in PHP? include 'file.php';
69%
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
45%
What does PHP stand for? PHP: Hypertext Preprocessor
45%
How do you call a private static variable inside a function of a class? self::$variable
38%
How do you declare a constructor in PHP? function __construct() {}
34%
Which one of these is a datatype in PHP? All of the above
31%
How do you read a file in PHP? readfile(filename);
21%
Which of the below is correct? Try/catch does not catch errors.
17%
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