+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
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. In Key value pairs, the value should contain validating keywords separated by the _______ symbol.
|
*
#
$
View Answer
2. What is the purpose of $_SESSION[]?
Used to initialize a session.
Used to register a global variable
Used to store variables of the current session
none of the above
View Answer
3. What gets printed?
33
37
38
32
View Answer
4. Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?
strip_str
strip
trim
trim_str
View Answer
5. What is the difference between echo and print?
They both behave the same.
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
View Answer
6. The ____________ file in windows is the first file that is referenced when the operating system tries to resolve a domain name.
Hosta
All of them
Public
Local
View Answer
7. How do I create PHP arrays in a HTML
?
" required /> < input ="MyArray[]" />
< input name= MyArray[]/>
< input MyArray[] />
" required /> < input name="MyArray[]" />
View Answer
8. What is the strpos() function used for?
Find the last character of a string
Search for character within a string
Locate position of a string’s first character
None of these
View Answer
9. Which of the following is used to declare a constant?
define
#pragma
constant
const
View Answer
10. In which variable is the users IP address stored?
$GLOBALS
$REMOTE_ADDR
$_ENV
$DOMAIN
View Answer