++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. How do I create PHP arrays in a HTML
?
< input name= MyArray[]/>
" required /> < input name="MyArray[]" />
" required /> < input ="MyArray[]" />
< input MyArray[] />
View Answer
2. _________ help in organizing codes by grouping requests that handle the codes in a single route and class.
Application
Controllers
Views
Models
View Answer
3. 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
4. The main reason to use the query builder over writing SQL code manually is because _________.
It uses configuration mode for migration
It is rich in features
It has few SQLite directives
It uses configuration mode for migration
View Answer
5. What is the strpos() function used for?
Search for character within a string
Find the last character of a string
None of these
Locate position of a string’s first character
View Answer
6. 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
7. Functions that are defined in the model and that replace along chain with a simple one are called _____.
None of Them
Event Listener
Eloquent ORM
Model Events
View Answer
8. What is the difference between echo and print?
They both behave the same.
Echo can take multiple parameters where as print cannot
Print is a function where as echo is not.
Print can take multiple parameters where as echo cannot
View Answer
9. 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
10. Which of the following is used to declare a constant?
define
#pragma
constant
const
View Answer