+923132835245
safcodeinstitute@gmail.com
Online Quiz
10000+ Questions!
Students Works
Ideas & Topics!
Live Coding
HTML & CSS
Home
(current)
About
Courses
CIT
Web Designing
Graphic Designing
Web Development
Digital Marketing
WordPress + SEO
Artificial Intelligence (AI)
Shopify + WordPress Development
Tutorials
Feedback
Programming Notes
Enroll Now
Contact
Test Your Programming Skills with Safcode!
Here is all important interview / exams questions.
Student doing practice apptitude test on safcode platform.
Instruction: "Total Number of Questions: 20
Each question carry 10 mark , no negative marking"
Quiz Start
1. What is the difference between echo and print?
They both behave the same.
Print is a function where as echo is not.
Print can take multiple parameters where as echo cannot
Echo can take multiple parameters where as print cannot
View Answer
2. 'd' later? $a = array( 'a', 3 => 'b', 1 => 'c', 'd' );
$a[1]
$a[2]
$a[3]
$a[4]
View Answer
3. Which of the following is the way to create comments in PHP?
// commented code to end of line
all of the above
/* commented code here */
# commented code to end of line
View Answer
4. The Update operation is similar to the ______ operation.
Create
Edit
Update
None of Them
View Answer
5. _________ automatically assign routes to all functions that have been declared in the Resource.
Resource Routing
Yield
All of Them
Requests
View Answer
6. The ____________ file in windows is the first file that is referenced when the operating system tries to resolve a domain name.
All of them
Public
Local
Hosta
View Answer
7. Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?
strip
trim
trim_str
strip_str
View Answer
8. ____________ function in PHP Returns a list of response headers sent (or ready to send)
headers_list()
header_sent()
Header_send()
header()
View Answer
9. How do I create PHP arrays in a HTML
?
< input MyArray[] />
< input name= MyArray[]/>
" required /> < input ="MyArray[]" />
" required /> < input name="MyArray[]" />
View Answer
10. Which of the following is used to declare a constant?
define
constant
#pragma
const
View Answer