Home
10th Grade
11th And 12th
11th Grade
12th Grade
3rd Grade
4th Grade
5th Grade
6th Grade
7th Grade
8th Grade
9th Grade
Advance Accountancy
Auditing
Computer Aptitude
Direct And Indirect Taxation
Exams
General Hindi
Indian Finance System
Information Technology And Application In Business
Macro Economics
Town Planning
Aerospace And Aeronautical
Analytical Instrumentation
Banking Awareness
Banking Exam
Biochemistry
Bioinformatics
Biology
Biotechnology
Business Statistics
C Program
C Programming
C++ Programming
Career Aptitude Test
Cell Biology
Central Superior Service (css)
Chemical Engineering
Chemistry
Civil Engineering
Commerce
Computer
Computer Fundamentals
Computer Science
Cost Accounting
Css
Database
Drug And Pharmaceutical Biotechnology
Ecat And Mcat Entry Test
Economics
Electrical Engineering
Electrical Engineering Questions
Electrical Measurement And Instrumentation
Engineering
English
English Literature
Environment Management
Environmental Biotechnology
Enzyme Technology
Financial Management And Financial Markets
Gate
General Knowledge
Graduate Assessment Test (gat)
Health And Physical
Heat Transfer
Html
Human Anatomy And Physiology
Human And Cultural Diversity
Human Resource Management
Ias
Indian Economy
Indian Economy
Indian General Awareness
Indian Geography
Indian Geography
Indian History
Indian History
Indian Polity
Instrumentation Transducers
International Relations
Java Program
Javascript
Judiciary And Law
Life Sciences
Management
Marketing And Marketing Management
Mass Transfer
Mechanical Engineering
Mechanics Of Materials
Medical Subjects
Microbiology
Networking
Php
Placement Tests
Professional Communication
Quantitative Aptitude
Reasoning Aptitude
Renewable Energy
Science
Sociology
Sql
Surveying
Total Quality Management
Uidai Aadhaar Supervisor Certification
Virology
Notificatin
Exam
Blog
Contact Us
Php Exceptions And Error Handling(Engineering > Computer Science And Engineering > Php ) Questions and Answers
Home
Topic
Engineering
Computer Science And Engineering
Php
Php Exceptions And Error Handling
Question 1.
How many error levels are available in PHP?
17
15
14
16
Explanation:-
Answer: Option D. ->
16
Question 2.
Say you want to report error concerned about fatal run-time, fatal compile-time error and core error which statement would you use?
error_reporting = E_ERROR | E_PARSE | E_CORE_ERROR
error_reporting = E_ERROR | E_COMPILE_ERROR | E_CORE_ERROR
error_reporting = E_ERROR | E_COMPILE_WARNING | E_CORE_ERROR
error_reporting = E_ALL
Explanation:-
Answer: Option B. ->
error_reporting = E_ERROR | E_COMPILE_ERROR | E_CORE_ERROR
Question 3.
Which version of PHP introduced E_STRICT Error level?
PHP 5.2
PHP 5
PHP 5.3
PHP 4
Explanation:-
Answer: Option B. ->
PHP 5
Question 4.
What is the description of Error level E_ERROR?
Fatal run-time error
Compile-time error
Fatal Compile-time error
Near-fatal error
Explanation:-
Answer: Option A. ->
Fatal run-time error
Question 5.
Which character do the error_reporting directive use to represent the logical operator NOT?
~
/
^
!
Explanation:-
Answer: Option A. ->
~
Question 6.
Which of the following statements causes PHP to disregard repeated error messages that occur within the same file and on the same line?
repeated_error_ignore
repeatedly_ignore_error
ignore_repeat_error
ignore_repeated_errors
Explanation:-
Answer: Option D. ->
ignore_repeated_errors
Question 7.
Which version introduced the function error_get_last()?
PHP 5.2
PHP 5
PHP 4
PHP 5.3
Explanation:-
Answer: Option A. ->
PHP 5.2
Question 8.
Which function initializes the constants necessary for using the openlog(), clodelog(), and syslog() functions?
define_log_variable()
log_variable()
define_syslog_variable()
define_variable()
Explanation:-
Answer: Option C. ->
define_syslog_variable()
Question 9.
Which logging option’s description is, if an error occurs when writing to the syslog, send output to the system console?
LOG_CONS
LOG_NDELAY
LOG_PERROR
LOG_ODELAY
Explanation:-
Answer: Option A. ->
LOG_CONS
Question 10.
Which function is responsible for sending a custom message to the system log?
sys_log()
log_system()
systemlog()
syslog()
Explanation:-
Answer: Option D. ->
syslog()
1
2
Next →
One click Login
Login With Google
Old way of Login
Login With Email