+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. Which of the following is the way to create comments in PHP?
# commented code to end of line
all of the above
/* commented code here */
// commented code to end of line
View Answer
2. What gets printed?
37
32
38
33
View Answer
3. Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?
trim_str
strip_str
strip
trim
View Answer
4. Which of the following is used to declare a constant?
define
constant
#pragma
const
View Answer
5. What will be the value of $var?
0.2
0.5
0
1
View Answer
6. Laravel uses the ________ design pattern.
None of These
Wordpress
Model-View-Controller
CakePHP
View Answer
7. _________ automatically assign routes to all functions that have been declared in the Resource.
Yield
Resource Routing
All of Them
Requests
View Answer
8. What is the purpose of $_SESSION[]?
none of the above
Used to register a global variable
Used to initialize a session.
Used to store variables of the current session
View Answer
9. Which of the following enables the user to add elements to the project that follow the Laravel convention?
Composer
Artisan Tool
Convention
Laravel Components
View Answer
10. What does PHP stand for?
Hypeetext pre-processor
Personal Home Page
Php pre processor
Private Home Page
View Answer