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 Operators And Expressions(Engineering > Computer Science And Engineering > Php ) Questions and Answers
Home
Topic
Engineering
Computer Science And Engineering
Php
Php Operators And Expressions
Question 1.
What will be the output of the following PHP code ?# echo "Hello world";echo "# Hello world";
Error
# Hello world
Hello world# Hello world
Hello world
Explanation:-
Answer: Option B. ->
# Hello world
Question 2.
What will be the output of the following PHP code ?
Error
Nothing
Missing semicolon error
Hello World
Explanation:-
Answer: Option B. ->
Nothing
Question 3.
What will be the output of the following PHP code ?$color = "red";echo "$color";echo "$COLOR";echo "$Color";
redredred
red
redred
Error
Explanation:-
Answer: Option B. ->
red
Question 4.
What will be the output of the following PHP code ?print_r "Hello world"
Missing semicolon error
Hello World
Error
Nothing
Explanation:-
Answer: Option C. ->
Error
Question 5.
What will be the output of the following PHP code ?echo "Hello World"
Hello world in italics
Error
Nothing
Hello world
Explanation:-
Answer: Option A. ->
Hello world in italics
Question 6.
What will be the output of the following PHP code ?echo "echo "Hello World"";
Error
echo Hello world
echo “Hello world”
Hello world
Explanation:-
Answer: Option A. ->
Error
Question 7.
What will be the output of the following PHP code ?$color = red;echo "$color" . red ;
red
red red
error
nothing
Explanation:-
Answer: Option C. ->
error
Question 8.
What will be the output of the following PHP code ?< ? php < ? php echo "Hello world"; ? > ? >
Nothing
Hello world
Hello
Error
Explanation:-
Answer: Option D. ->
Error
Question 9.
What will be the output of the following PHP code ?$color = red;echo "$color";
$color
Error
red
red
Explanation:-
Answer: Option A. ->
$color
Question 10.
What will be the output of the following PHP code ?$color1 = red;$color2 = green;echo "$color1"."$color2";
red green
green
error
red
Explanation:-
Answer: Option C. ->
error
1
2
3
4
5
6
7
...
12
13
Next →
One click Login
Login With Google
Old way of Login
Login With Email