++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. ____________ function in PHP Returns a list of response headers sent (or ready to send)
header()
header_sent()
headers_list()
Header_send()
View Answer
2. The Update operation is similar to the ______ operation.
Update
None of Them
Create
Edit
View Answer
3. 'd' later? $a = array( 'a', 3 => 'b', 1 => 'c', 'd' );
$a[4]
$a[2]
$a[1]
$a[3]
View Answer
4. In Key value pairs, the value should contain validating keywords separated by the _______ symbol.
#
*
$
|
View Answer
5. What is the strpos() function used for?
Locate position of a string’s first character
Find the last character of a string
Search for character within a string
None of these
View Answer
6. What is the difference between echo and print?
Print can take multiple parameters where as echo cannot
Print is a function where as echo is not.
They both behave the same.
Echo can take multiple parameters where as print cannot
View Answer
7. The main reason to use the query builder over writing SQL code manually is because _________.
It uses configuration mode for migration
It uses configuration mode for migration
It has few SQLite directives
It is rich in features
View Answer
8. Functions that are defined in the model and that replace along chain with a simple one are called _____.
Model Events
Eloquent ORM
None of Them
Event Listener
View Answer
9. 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
10. What is the purpose of $_SESSION[]?
none of the above
Used to register a global variable
Used to store variables of the current session
Used to initialize a session.
View Answer