+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. _________ automatically assign routes to all functions that have been declared in the Resource.
Requests
All of Them
Resource Routing
Yield
View Answer
2. Laravel uses the ________ design pattern.
Model-View-Controller
CakePHP
Wordpress
None of These
View Answer
3. In which variable is the users IP address stored?
$_ENV
$GLOBALS
$DOMAIN
$REMOTE_ADDR
View Answer
4. What gets printed?
38
33
32
37
View Answer
5. Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?
strip_str
trim
trim_str
strip
View Answer
6. 'd' later? $a = array( 'a', 3 => 'b', 1 => 'c', 'd' );
$a[3]
$a[1]
$a[4]
$a[2]
View Answer
7. What will be the value of $var?
0.2
0
0.5
1
View Answer
8. 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
9. Which of the following is used to declare a constant?
constant
define
#pragma
const
View Answer
10. Functions that are defined in the model and that replace along chain with a simple one are called _____.
Eloquent ORM
Event Listener
Model Events
None of Them
View Answer