PHP Quiz | Set-1 Read Discuss Courses PHP Quiz | Set-1 Please wait while the activity loads. If this activity does not load, try refreshing your browser. Also, this page requires javascript. Please visit using a browser with javascript enabled. If loading fails, click here to try again Question 1Full form of PHP is______Hypertext PreprocessorPretext Hypertext PreprocessorProcessor Hypertext ProcessorNone of the abovePHP Quiz | Set-1 Discuss itQuestion 1-Explanation: The full form of PHP is Hypertext Preprocessor, earlier it was called Personal Home Page, So the answer is Option A. PHP is called Hypertext Preprocessor because it is well documented and Open source means anyone can download it without any paying cost.Question 2 The default file extension in PHP are ____ .php .css .js .html PHP Quiz | Set-1 Discuss itQuestion 2-Explanation: php is default extension of PHP. Question 3Which of the following is the correct way to declare the constant in PHP?constdefinevarletPHP Quiz | Set-1 Discuss itQuestion 3-Explanation: The define is a function in PHP that is used to declare the constant define take 3 parameters like name, value, and check the case_sensative. So the correct way to declare the constant in PHP is to define. Question 4How does the name of the variable in PHP starts?Sign !Sign $ Sign & Sign # PHP Quiz | Set-1 Discuss itQuestion 4-Explanation: The name of the variable in PHP starts with the Sign $ example: the syntax for initializing variable $a=20; Here a is variable followed by $ sign.Question 5 Which of the following is the syntax of comment in PHP? /* */ # // All of the above PHP Quiz | Set-1 Discuss itQuestion 5-Explanation: There are 3 ways to write comments in PHP. /* */ is a multiline comment you can comment as: /* This is a multiple line comment /*, # This is a single-line comment in PHP and this is also // a single line comment you can write as // This is a single-line comment. Question 6 If you want to add write the PHP code which of the below code editor is used? Notepad++ Sublime Visual code All of the above PHP Quiz | Set-1 Discuss itQuestion 6-Explanation: Notepad ++, Sublime Text, and Visual code. These three are most used for writing the PHP script. These all are code editors Question 7 Which of the below method is used to generate the unique id in Php? unique() id() mid() None of the above PHP Quiz | Set-1 Discuss itQuestion 7-Explanation: The unique id is a function in PHP that is responsible for the generation of a unique id at some millisecond time. It doesn't guarantee the return value .unique id takes 2 parameter prefixes and more_entropy. And it supports in PHP 4+ version. Question 8Which of the following is the correct way to concrete() the two strings in PHP?.+AppendAll of the abovePHP Quiz | Set-1 Discuss itQuestion 8-Explanation: Concatenation is used for adding the two strings with the help of. (dot symbol) in PHP. Example: Input : Geeks: Hello string2: For Output: GeeksFor.Question 9 Which of the below is the correct syntax for opening the given file in PHP? "geeky.txt" fopen("geeky.txt", "r"); fopen("geeky.txt", "w"); fopen("geeky.txt", "read"); fopen("geeky.txt"); PHP Quiz | Set-1 Discuss itQuestion 9-Explanation: The correct syntax for opening the file in PHP is open("geeky.txt", "r"); where r represents the reading mode of the file and "geeky.txt" is the name of the file. Question 10Which of the below function display the configuration in PHP?php_display()phpinfo()info_config()None of the abovePHP Quiz | Set-1 Discuss itQuestion 10-Explanation: The phpinfo() function is used to display the configuration in PHP. It also returns the compiled information about PHP. 12 There are 15 questions to complete. You have completed questions question Your accuracy is Correct Wrong Partial-Credit You have not finished your quiz. If you leave this page, your progress will be lost. Correct Answer You Selected Not Attempted Final Score on Quiz Attempted Questions Correct Attempted Questions Wrong Questions Not Attempted Total Questions on Quiz Question Details Results Date Score Hint Time allowed minutes seconds Time used Answer Choice(s) Selected Question Text All doneNeed more practice!Keep trying!Not bad!Good work!Perfect! Last Updated : 27 Sep, 2023