+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. What will be the value of $var?
1
0.5
0.2
0
View Answer
2. The ____________ file in windows is the first file that is referenced when the operating system tries to resolve a domain name.
All of them
Local
Hosta
Public
View Answer
3. The main reason to use the query builder over writing SQL code manually is because _________.
It has few SQLite directives
It is rich in features
It uses configuration mode for migration
It uses configuration mode for migration
View Answer
4. _________ help in organizing codes by grouping requests that handle the codes in a single route and class.
Controllers
Application
Models
Views
View Answer
5. Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?
trim
strip
strip_str
trim_str
View Answer
6. In Key value pairs, the value should contain validating keywords separated by the _______ symbol.
*
#
$
|
View Answer
7. Which of the following is the way to create comments in PHP?
# commented code to end of line
// commented code to end of line
all of the above
/* commented code here */
View Answer
8. 'd' later? $a = array( 'a', 3 => 'b', 1 => 'c', 'd' );
$a[4]
$a[1]
$a[3]
$a[2]
View Answer
9. ____________ function in PHP Returns a list of response headers sent (or ready to send)
header()
header_sent()
headers_list()
Header_send()
View Answer
10. 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