+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. How do I create PHP arrays in a HTML
?
" required /> < input name="MyArray[]" />
< input name= MyArray[]/>
< input MyArray[] />
" required /> < input ="MyArray[]" />
View Answer
2. What is the purpose of $_SESSION[]?
Used to store variables of the current session
none of the above
Used to initialize a session.
Used to register a global variable
View Answer
3. Which of the following enables the user to add elements to the project that follow the Laravel convention?
Convention
Laravel Components
Artisan Tool
Composer
View Answer
4. Laravel uses the ________ design pattern.
None of These
Wordpress
CakePHP
Model-View-Controller
View Answer
5. 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
6. 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
7. Functions that are defined in the model and that replace along chain with a simple one are called _____.
Event Listener
None of Them
Model Events
Eloquent ORM
View Answer
8. 'd' later? $a = array( 'a', 3 => 'b', 1 => 'c', 'd' );
$a[4]
$a[2]
$a[3]
$a[1]
View Answer
9. The ____________ file in windows is the first file that is referenced when the operating system tries to resolve a domain name.
Local
All of them
Hosta
Public
View Answer
10. What is the strpos() function used for?
None of these
Search for character within a string
Locate position of a string’s first character
Find the last character of a string
View Answer