+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 difference between echo and print?
Echo can take multiple parameters where as print cannot
Print is a function where as echo is not.
They both behave the same.
Print can take multiple parameters where as echo cannot
View Answer
2. What is the strpos() function used for?
Search for character within a string
None of these
Locate position of a string’s first character
Find the last character of a string
View Answer
3. The Update operation is similar to the ______ operation.
Update
Create
Edit
None of Them
View Answer
4. How do I create PHP arrays in a HTML
?
" required /> < input ="MyArray[]" />
" required /> < input name="MyArray[]" />
< input name= MyArray[]/>
< input MyArray[] />
View Answer
5. 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
6. The main reason to use the query builder over writing SQL code manually is because _________.
It is rich in features
It uses configuration mode for migration
It uses configuration mode for migration
It has few SQLite directives
View Answer
7. What will be the value of $var?
0
1
0.5
0.2
View Answer
8. The ____________ file in windows is the first file that is referenced when the operating system tries to resolve a domain name.
Hosta
Local
Public
All of them
View Answer
9. Functions that are defined in the model and that replace along chain with a simple one are called _____.
Eloquent ORM
Model Events
Event Listener
None of Them
View Answer
10. Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?
trim_str
trim
strip
strip_str
View Answer