+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. Laravel uses the ________ design pattern.
CakePHP
Model-View-Controller
Wordpress
None of These
View Answer
2. In which variable is the users IP address stored?
$REMOTE_ADDR
$_ENV
$DOMAIN
$GLOBALS
View Answer
3. What is the purpose of $_SESSION[]?
Used to store variables of the current session
Used to initialize a session.
none of the above
Used to register a global variable
View Answer
4. What is the difference between echo and print?
They both behave the same.
Print can take multiple parameters where as echo cannot
Echo can take multiple parameters where as print cannot
Print is a function where as echo is not.
View Answer
5. Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?
strip
strip_str
trim
trim_str
View Answer
6. Functions that are defined in the model and that replace along chain with a simple one are called _____.
None of Them
Event Listener
Model Events
Eloquent ORM
View Answer
7. Which of the following is the way to create comments in PHP?
// commented code to end of line
# commented code to end of line
all of the above
/* commented code here */
View Answer
8. In Key value pairs, the value should contain validating keywords separated by the _______ symbol.
*
#
|
$
View Answer
9. The main reason to use the query builder over writing SQL code manually is because _________.
It is rich in features
It uses configuration mode for migration
It uses configuration mode for migration
It has few SQLite directives
View Answer
10. _________ automatically assign routes to all functions that have been declared in the Resource.
Requests
All of Them
Yield
Resource Routing
View Answer