+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
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. The Update operation is similar to the ______ operation.
Update
Edit
None of Them
Create
View Answer
2. Which of the following is the way to create comments in PHP?
// commented code to end of line
# commented code to end of line
/* commented code here */
all of the above
View Answer
3. What does PHP stand for?
Private Home Page
Personal Home Page
Hypeetext pre-processor
Php pre processor
View Answer
4. _________ automatically assign routes to all functions that have been declared in the Resource.
Requests
Resource Routing
All of Them
Yield
View Answer
5. Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?
strip
strip_str
trim
trim_str
View Answer
6. Which of the following is used to declare a constant?
#pragma
const
constant
define
View Answer
7. 'd' later? $a = array( 'a', 3 => 'b', 1 => 'c', 'd' );
$a[1]
$a[3]
$a[2]
$a[4]
View Answer
8. _________ help in organizing codes by grouping requests that handle the codes in a single route and class.
Controllers
Models
Application
Views
View Answer
9. What is the strpos() function used for?
None of these
Locate position of a string’s first character
Search for character within a string
Find the last character of a string
View Answer
10. ____________ function in PHP Returns a list of response headers sent (or ready to send)
header()
headers_list()
Header_send()
header_sent()
View Answer