+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. In which variable is the users IP address stored?
$REMOTE_ADDR
$DOMAIN
$_ENV
$GLOBALS
View Answer
2. ____________ function in PHP Returns a list of response headers sent (or ready to send)
header_sent()
header()
headers_list()
Header_send()
View Answer
3. Laravel uses the ________ design pattern.
None of These
Model-View-Controller
Wordpress
CakePHP
View Answer
4. Which of the following is used to declare a constant?
constant
const
#pragma
define
View Answer
5. The ____________ file in windows is the first file that is referenced when the operating system tries to resolve a domain name.
Hosta
All of them
Local
Public
View Answer
6. In Key value pairs, the value should contain validating keywords separated by the _______ symbol.
#
*
|
$
View Answer
7. Which of the following enables the user to add elements to the project that follow the Laravel convention?
Artisan Tool
Laravel Components
Convention
Composer
View Answer
8. Which of the following is the way to create comments in PHP?
/* commented code here */
all of the above
// commented code to end of line
# commented code to end of line
View Answer
9. Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?
trim_str
strip_str
trim
strip
View Answer
10. The main reason to use the query builder over writing SQL code manually is because _________.
It uses configuration mode for migration
It has few SQLite directives
It is rich in features
It uses configuration mode for migration
View Answer