+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
Softwares
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. Which of the following is the way to create comments in PHP?
/* commented code here */
# commented code to end of line
// commented code to end of line
all of the above
View Answer
2. In Key value pairs, the value should contain validating keywords separated by the _______ symbol.
$
*
#
|
View Answer
3. Functions that are defined in the model and that replace along chain with a simple one are called _____.
Event Listener
None of Them
Eloquent ORM
Model Events
View Answer
4. ____________ function in PHP Returns a list of response headers sent (or ready to send)
header_sent()
header()
headers_list()
Header_send()
View Answer
5. 'd' later? $a = array( 'a', 3 => 'b', 1 => 'c', 'd' );
$a[2]
$a[3]
$a[1]
$a[4]
View Answer
6. _________ automatically assign routes to all functions that have been declared in the Resource.
All of Them
Requests
Yield
Resource Routing
View Answer
7. In which variable is the users IP address stored?
$_ENV
$REMOTE_ADDR
$DOMAIN
$GLOBALS
View Answer
8. What does PHP stand for?
Personal Home Page
Php pre processor
Hypeetext pre-processor
Private Home Page
View Answer
9. Which of the following is used to declare a constant?
#pragma
define
const
constant
View Answer
10. How do I create PHP arrays in a HTML
?
< input MyArray[] />
" required /> < input name="MyArray[]" />
< input name= MyArray[]/>
" required /> < input ="MyArray[]" />
View Answer