+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
Softwares
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 strpos() function used for?
Locate position of a string’s first character
Search for character within a string
Find the last character of a string
None of these
View Answer
2. ____________ function in PHP Returns a list of response headers sent (or ready to send)
headers_list()
header_sent()
Header_send()
header()
View Answer
3. The ____________ file in windows is the first file that is referenced when the operating system tries to resolve a domain name.
All of them
Hosta
Public
Local
View Answer
4. What is the purpose of $_SESSION[]?
Used to register a global variable
Used to store variables of the current session
Used to initialize a session.
none of the above
View Answer
5. Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?
strip_str
trim_str
strip
trim
View Answer
6. Functions that are defined in the model and that replace along chain with a simple one are called _____.
Model Events
Event Listener
Eloquent ORM
None of Them
View Answer
7. How do I create PHP arrays in a HTML
?
< input MyArray[] />
" required /> < input ="MyArray[]" />
" required /> < input name="MyArray[]" />
< input name= MyArray[]/>
View Answer
8. What is the difference between echo and print?
Print is a function where as echo is not.
They both behave the same.
Print can take multiple parameters where as echo cannot
Echo can take multiple parameters where as print cannot
View Answer
9. Laravel uses the ________ design pattern.
Wordpress
None of These
Model-View-Controller
CakePHP
View Answer
10. What does PHP stand for?
Personal Home Page
Hypeetext pre-processor
Private Home Page
Php pre processor
View Answer