
PHP TEST -6
Authored by Arivuselvi A
Computers
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the below symbols is a newline character?
\r
\n
/n
/r
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of following variables can be assigned a value to it?
(i) $3hello
(ii) $_hello
(iii) $this
(iv) $This
All of the mentioned
Only (ii)
(ii), (iii) and (iv)
(ii) and (iv)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed?
12
1
Error
5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following PHP statements will output Hello World on the screen?
(i) echo ("Hello World);
(ii) print ("Hello World);
(iii) printf ("Hello World);
(iv) sprintf ("Hello World);
(i) and (ii)
(i), (ii) and (iii)
All of the mentioned
(i), (ii) and (iv)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following PHP code?
< ?php $score = 1234;
$scoreboard = (array) $score;
echo $scoreboard[0];
?>
1
Error
1234
2
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Session 2
Quiz
•
University
10 questions
Programming basic
Quiz
•
University
10 questions
Servidor Web
Quiz
•
University
10 questions
Quiz-AIML
Quiz
•
University
7 questions
CSS Rules Quiz-unit 4 CodeHS
Quiz
•
7th Grade - University
10 questions
C Programming Quiz-5
Quiz
•
University
10 questions
Cybercrime
Quiz
•
University
10 questions
YT-Quiz
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade