++92 313 8389893
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 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
2. Which of the following enables the user to add elements to the project that follow the Laravel convention?
Convention
Artisan Tool
Laravel Components
Composer
View Answer
3. _________ help in organizing codes by grouping requests that handle the codes in a single route and class.
Application
Views
Models
Controllers
View Answer
4. _________ automatically assign routes to all functions that have been declared in the Resource.
All of Them
Requests
Yield
Resource Routing
View Answer
5. 'd' later? $a = array( 'a', 3 => 'b', 1 => 'c', 'd' );
$a[1]
$a[2]
$a[4]
$a[3]
View Answer
6. Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?
trim_str
trim
strip_str
strip
View Answer
7. In Key value pairs, the value should contain validating keywords separated by the _______ symbol.
|
#
*
$
View Answer
8. 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
9. What will be the value of $var?
0.2
1
0.5
0
View Answer
10. What gets printed?
33
32
37
38
View Answer