Safcode Institute by Sir Safder
+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
App Development
Amazon Virtual Assistant
YouTube Earning
WordPress Development
Tutorials
Feedback
Programming Notes
Verification
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?
They both behave the same.
Print is a function where as echo is not.
Echo can take multiple parameters where as print cannot
Print can take multiple parameters where as echo cannot
View Answer
2. How do I create PHP arrays in a HTML
?
< input name= MyArray[]/>
" required /> < input ="MyArray[]" />
< input MyArray[] />
" required /> < input name="MyArray[]" />
View Answer
3. 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
4. Which of the following is the way to create comments in PHP?
// commented code to end of line
/* commented code here */
all of the above
# commented code to end of line
View Answer
5. ____________ function in PHP Returns a list of response headers sent (or ready to send)
Header_send()
headers_list()
header_sent()
header()
View Answer
6. Which of the following enables the user to add elements to the project that follow the Laravel convention?
Convention
Composer
Artisan Tool
Laravel Components
View Answer
7. 'd' later? $a = array( 'a', 3 => 'b', 1 => 'c', 'd' );
$a[2]
$a[1]
$a[3]
$a[4]
View Answer
8. What gets printed?
32
38
37
33
View Answer
9. In Key value pairs, the value should contain validating keywords separated by the _______ symbol.
*
#
$
|
View Answer
10. _________ help in organizing codes by grouping requests that handle the codes in a single route and class.
Controllers
Models
Application
Views
View Answer