
$4cso1-PhpQuiz
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
RAVIKANTH K
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a variable in PHP?
int $varName
$varName
declare $varName
var $varName
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following PHP code?
<?php
$x = "Hello";
$y = 'World';
echo $x . " " . $y;
?>
HelloWorld
Hello World
Error
Hello+World
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the PHP array:
$arr = array(1, 2, 3, 4);
What is the correct way to access the third element?
$arr[2]
$arr[3]
$arr(3)
$array[2]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Whats the output of the below code?
<?php for ($i = 0; $i <= 10; $i++) {
echo $i; } echo $i;
?>
0,1,2,3,4,5,6,7,8,9,10,11
No Error
Syntax error in loop
Undefined variable outside loop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method should be used to send sensitive data in a form?
GET
POST
PUT
DELETE
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to erase all session variables stored in the current session?
session_destroy()
session_change()
session_remove()
session_unset()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following statements should you use to set the session username to "SAM"
$SESSION[‘username’] = “SAM”;
$_SESSION[‘username’] = “SAM”;
session_start(“SAM”);
$SESSION_START[“username”] = “SAM”;
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
Kuis Energizer GCR
Quiz
•
Professional Development
15 questions
BrightChamps Technical Round - C language
Quiz
•
Professional Development
10 questions
02 - Python - Introduction & Installation
Quiz
•
University - Professi...
10 questions
CORSO G_SUITE parte seconda
Quiz
•
Professional Development
15 questions
HTML
Quiz
•
Professional Development
10 questions
How are you doing?
Quiz
•
Professional Development
10 questions
Chapter 11.1 Windows Desktop and File Explorer
Quiz
•
KG - Professional Dev...
11 questions
Java Fundamentals
Quiz
•
Professional Development
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
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
