PHP Quiz: Trivia Knowledge! Exam tests your understanding of PHP programming. It covers file inclusion, operators, and syntax. This quiz is ideal for learners aiming to enhance their PHP skills, ensuring they grasp essential programming concepts.
< ?php include("time.inc"); ? >
< !--include file="time.inc"-- >
< % include file="time.inc" % >
< ?php include_file("time.inc"); ? >
Rate this question:
=
==
!=
Rate this question:
+
&
.
$
Rate this question:
==
=
+
++
Rate this question:
Assignment Operators
Arithmetic Operators
String Operators
Comparison Operators
Rate this question:
$dan .= "Dan";
$dan += "Dan";
$dan &= "Dan";
$Dan == "Dan";
Rate this question:
Input()
Add()
Aquire()
Require()
Rate this question:
&&
||
!
£
^
Rate this question:
If (condition) code to be executed if condition is true;
If (condition) code to be executed if condition is true; else code to be executed if condition is false;
If (condition) code to be executed if condition is true; elseif (condition) code to be executed if condition is true; else code to be executed if condition is false;
If (condition) code to be executed if condition is true; elseif(condition) code to be executed if condition is false;
Rate this question:
Case (n) { switch label1: code to be executed if n=label1; break; switch label2: code to be executed if n=label2; break; default: code to be executed if n is different from both label1 and label2; }
Switch (n) { case label1: code to be executed if n=label1; case label2: code to be executed if n=label2; default: code to be executed if n is different from both label1 and label2; }
Switch (n) { case label1: code to be executed if n=label1; break; case label2: code to be executed if n=label2; break; default: code to be executed if n is different from both label1 and label2; }
Rate this question:
Var http = require("http");
Var http = import("http");
Package http;
Import http;
Rate this question:
The __filename represents the filename of the code being executed.
The __filename represents the resolved absolute path of code file.
Both of the above.
None of the above.
Rate this question:
Console.log('type : ' + os.type);
Console.log('type : ' + os.type());
Console.log('type : ' + os.getType());
None of the above.
Rate this question:
Var fs = require("fs");
Var fs = import("fs");
Package fs;
Import fs;
Rate this question:
Quiz Review Timeline (Updated): Mar 21, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.