+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. In which variable is the users IP address stored?
$GLOBALS
$REMOTE_ADDR
$DOMAIN
$_ENV
View Answer
2. What is the strpos() function used for?
Search for character within a string
Find the last character of a string
None of these
Locate position of a string’s first character
View Answer
3. The Update operation is similar to the ______ operation.
Update
None of Them
Create
Edit
View Answer
4. _________ help in organizing codes by grouping requests that handle the codes in a single route and class.
Models
Views
Controllers
Application
View Answer
5. 'd' later? $a = array( 'a', 3 => 'b', 1 => 'c', 'd' );
$a[2]
$a[4]
$a[1]
$a[3]
View Answer
6. Which of the following is the way to create comments in PHP?
/* commented code here */
# commented code to end of line
// commented code to end of line
all of the above
View Answer
7. What gets printed?
32
37
33
38
View Answer
8. Functions that are defined in the model and that replace along chain with a simple one are called _____.
Model Events
Event Listener
Eloquent ORM
None of Them
View Answer
9. Laravel uses the ________ design pattern.
Wordpress
Model-View-Controller
CakePHP
None of These
View Answer
10. In Key value pairs, the value should contain validating keywords separated by the _______ symbol.
|
#
*
$
View Answer