+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. 'd' later? $a = array( 'a', 3 => 'b', 1 => 'c', 'd' );
$a[3]
$a[4]
$a[2]
$a[1]
View Answer
2. 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
Public
Hosta
View Answer
3. Which of the following enables the user to add elements to the project that follow the Laravel convention?
Composer
Convention
Artisan Tool
Laravel Components
View Answer
4. Functions that are defined in the model and that replace along chain with a simple one are called _____.
None of Them
Eloquent ORM
Model Events
Event Listener
View Answer
5. In Key value pairs, the value should contain validating keywords separated by the _______ symbol.
$
|
*
#
View Answer
6. What is the strpos() function used for?
Search for character within a string
Locate position of a string’s first character
Find the last character of a string
None of these
View Answer
7. What is the difference between echo and print?
Print is a function where as echo is not.
Print can take multiple parameters where as echo cannot
They both behave the same.
Echo can take multiple parameters where as print cannot
View Answer
8. Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?
trim
strip_str
trim_str
strip
View Answer
9. _________ help in organizing codes by grouping requests that handle the codes in a single route and class.
Application
Models
Controllers
Views
View Answer
10. The Update operation is similar to the ______ operation.
None of Them
Edit
Update
Create
View Answer