++92 313 8389893
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. What is the difference between echo and print?
Print is a function where as echo is not.
Echo can take multiple parameters where as print cannot
They both behave the same.
Print can take multiple parameters where as echo cannot
View Answer
2. _________ help in organizing codes by grouping requests that handle the codes in a single route and class.
Application
Views
Models
Controllers
View Answer
3. Which of the following is used to declare a constant?
const
define
constant
#pragma
View Answer
4. What does PHP stand for?
Hypeetext pre-processor
Personal Home Page
Php pre processor
Private Home Page
View Answer
5. Functions that are defined in the model and that replace along chain with a simple one are called _____.
Eloquent ORM
Event Listener
None of Them
Model Events
View Answer
6. 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
7. In which variable is the users IP address stored?
$GLOBALS
$REMOTE_ADDR
$_ENV
$DOMAIN
View Answer
8. ____________ function in PHP Returns a list of response headers sent (or ready to send)
header()
Header_send()
header_sent()
headers_list()
View Answer
9. What will be the value of $var?
1
0.2
0.5
0
View Answer
10. Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?
strip
trim
trim_str
strip_str
View Answer