+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.
Resource Routing
Requests
Yield
All of Them
View Answer
2. Laravel uses the ________ design pattern.
Wordpress
CakePHP
None of These
Model-View-Controller
View Answer
3. The main reason to use the query builder over writing SQL code manually is because _________.
It has few SQLite directives
It is rich in features
It uses configuration mode for migration
It uses configuration mode for migration
View Answer
4. What is the difference between echo and print?
Print is a function where as echo is not.
They both behave the same.
Echo can take multiple parameters where as print cannot
Print can take multiple parameters where as echo cannot
View Answer
5. Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?
strip_str
strip
trim_str
trim
View Answer
6. In which variable is the users IP address stored?
$GLOBALS
$DOMAIN
$REMOTE_ADDR
$_ENV
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
/* commented code here */
all of the above
View Answer
8. Which of the following is used to declare a constant?
#pragma
constant
const
define
View Answer
9. 'd' later? $a = array( 'a', 3 => 'b', 1 => 'c', 'd' );
$a[4]
$a[3]
$a[2]
$a[1]
View Answer
10. What will be the value of $var?
1
0.2
0.5
0
View Answer