+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. Which of the following is used to declare a constant?
define
constant
const
#pragma
View Answer
2. ____________ function in PHP Returns a list of response headers sent (or ready to send)
header_sent()
Header_send()
header()
headers_list()
View Answer
3. In Key value pairs, the value should contain validating keywords separated by the _______ symbol.
*
#
$
|
View Answer
4. Which of the following is the way to create comments in PHP?
all of the above
# commented code to end of line
// commented code to end of line
/* commented code here */
View Answer
5. _________ automatically assign routes to all functions that have been declared in the Resource.
Requests
Yield
Resource Routing
All of Them
View Answer
6. The main reason to use the query builder over writing SQL code manually is because _________.
It uses configuration mode for migration
It is rich in features
It has few SQLite directives
It uses configuration mode for migration
View Answer
7. 'd' later? $a = array( 'a', 3 => 'b', 1 => 'c', 'd' );
$a[4]
$a[2]
$a[1]
$a[3]
View Answer
8. What is the purpose of $_SESSION[]?
Used to initialize a session.
Used to store variables of the current session
Used to register a global variable
none of the above
View Answer
9. How do I create PHP arrays in a HTML
?
< input MyArray[] />
" required /> < input ="MyArray[]" />
< input name= MyArray[]/>
" required /> < input name="MyArray[]" />
View Answer
10. What does PHP stand for?
Php pre processor
Hypeetext pre-processor
Personal Home Page
Private Home Page
View Answer