+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. _________ help in organizing codes by grouping requests that handle the codes in a single route and class.
Views
Models
Controllers
Application
View Answer
2. What is the difference between echo and print?
Echo can take multiple parameters where as print cannot
They both behave the same.
Print can take multiple parameters where as echo cannot
Print is a function where as echo is not.
View Answer
3. What does PHP stand for?
Private Home Page
Php pre processor
Hypeetext pre-processor
Personal Home Page
View Answer
4. How do I create PHP arrays in a HTML
?
" required /> < input ="MyArray[]" />
< input MyArray[] />
" required /> < input name="MyArray[]" />
< input name= MyArray[]/>
View Answer
5. In which variable is the users IP address stored?
$_ENV
$REMOTE_ADDR
$DOMAIN
$GLOBALS
View Answer
6. 'd' later? $a = array( 'a', 3 => 'b', 1 => 'c', 'd' );
$a[2]
$a[1]
$a[3]
$a[4]
View Answer
7. Which of the following is the way to create comments in PHP?
/* commented code here */
all of the above
# commented code to end of line
// commented code to end of line
View Answer
8. What gets printed?
32
33
37
38
View Answer
9. Which of the following enables the user to add elements to the project that follow the Laravel convention?
Laravel Components
Composer
Artisan Tool
Convention
View Answer
10. What will be the value of $var?
1
0.2
0.5
0
View Answer