+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. How do I create PHP arrays in a HTML
?
" required /> < input ="MyArray[]" />
< input MyArray[] />
< input name= MyArray[]/>
" required /> < input name="MyArray[]" />
View Answer
2. Laravel uses the ________ design pattern.
Model-View-Controller
CakePHP
Wordpress
None of These
View Answer
3. The Update operation is similar to the ______ operation.
Edit
None of Them
Create
Update
View Answer
4. In Key value pairs, the value should contain validating keywords separated by the _______ symbol.
$
#
*
|
View Answer
5. What is the strpos() function used for?
Find the last character of a string
Locate position of a string’s first character
Search for character within a string
None of these
View Answer
6. 'd' later? $a = array( 'a', 3 => 'b', 1 => 'c', 'd' );
$a[4]
$a[3]
$a[1]
$a[2]
View Answer
7. What is the purpose of $_SESSION[]?
none of the above
Used to initialize a session.
Used to register a global variable
Used to store variables of the current session
View Answer
8. What is the difference between echo and print?
Echo can take multiple parameters where as print cannot
Print is a function where as echo is not.
Print can take multiple parameters where as echo cannot
They both behave the same.
View Answer
9. What gets printed?
33
37
32
38
View Answer
10. Which of the following is the way to create comments in PHP?
all of the above
// commented code to end of line
/* commented code here */
# commented code to end of line
View Answer