++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?
Find the last character of a string
None of these
Locate position of a string’s first character
Search for character within a string
View Answer
2. What does PHP stand for?
Php pre processor
Private Home Page
Hypeetext pre-processor
Personal Home Page
View Answer
3. How do I create PHP arrays in a HTML
?
" required /> < input name="MyArray[]" />
" required /> < input ="MyArray[]" />
< input name= MyArray[]/>
< input MyArray[] />
View Answer
4. What will be the value of $var?
0.2
0.5
0
1
View Answer
5. What is the difference between echo and print?
Print can take multiple parameters where as echo cannot
Echo can take multiple parameters where as print cannot
Print is a function where as echo is not.
They both behave the same.
View Answer
6. Laravel uses the ________ design pattern.
Wordpress
None of These
Model-View-Controller
CakePHP
View Answer
7. 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
8. Which of the following is used to declare a constant?
#pragma
define
const
constant
View Answer
9. The ____________ file in windows is the first file that is referenced when the operating system tries to resolve a domain name.
Hosta
Local
All of them
Public
View Answer
10. In Key value pairs, the value should contain validating keywords separated by the _______ symbol.
#
|
*
$
View Answer