Skip to main content
Home
About Me
Portfolio
Blog
Software Development
News
Videos
Interview Questions
Coding Solutions
Competitive Programming
PHP Quiz
Cyber Security
Tools
Training
Events
News
People
Hacker Groups
Videos
Gaming
Museums
Events
News
Videos
Contacts
4 quizzes found.
Which of the following tags are an acceptable way to begin a PHP Code block?
<SCRIPT LANGUAGE="php">
<!
<%
<?php
<?
Choose 4 answers
Solve
What is the difference between the include and require language constructs?
Require constructs can't be used with URL filenames
Include constructs cause a fatal error if the file doesn't exist
There is no difference other than the name
Include constructs are processed at run time; require constructs are processed at compile time
Require constructs cause a fatal error if the file can't be read
Choose 1 answers
Solve
In PHP5 objects are passed by reference to a function when (Select the answer that is the most correct):
Always; objects are passed by reference in PHP5
When the calling code preceeds the variable name with a &
Never; objects are cloned when passed to a function
When the function paramater listing preceeds the variable name with a &
Choose 1 answers
Solve
What is the difference between print() and echo()?
print() can be used as part of an expression, while echo() can’t
echo() can be used as part of an expression, while print() can’t
echo() can be used in the CLI version of PHP, while print() can’t
print() can be used in the CLI version of PHP, while echo() can’t
There’s no difference: both functions print out some text!
Choose 1 answers
Solve
Do you like cookies?
🍪 I use cookies to ensure you get the best experience on my website.
More cookies info
I agree