+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 gets printed?
32
33
38
37
View Answer
2. In which variable is the users IP address stored?
$_ENV
$GLOBALS
$DOMAIN
$REMOTE_ADDR
View Answer
3. Which of the following is used to declare a constant?
constant
define
const
#pragma
View Answer
4. Laravel uses the ________ design pattern.
Model-View-Controller
Wordpress
None of These
CakePHP
View Answer
5. How do I create PHP arrays in a HTML
?
< input name= MyArray[]/>
" required /> < input name="MyArray[]" />
< input MyArray[] />
" required /> < input ="MyArray[]" />
View Answer
6. What is the purpose of $_SESSION[]?
Used to initialize a session.
Used to register a global variable
Used to store variables of the current session
none of the above
View Answer
7. Which of the following is the way to create comments in PHP?
all of the above
# commented code to end of line
/* commented code here */
// commented code to end of line
View Answer
8. Functions that are defined in the model and that replace along chain with a simple one are called _____.
Eloquent ORM
Event Listener
None of Them
Model Events
View Answer
9. The ____________ file in windows is the first file that is referenced when the operating system tries to resolve a domain name.
Public
Local
Hosta
All of them
View Answer
10. _________ automatically assign routes to all functions that have been declared in the Resource.
Yield
Resource Routing
Requests
All of Them
View Answer