
PHP and MySQL Quiz
Authored by Nur Tyas
Computers
10th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
OPEN ENDED QUESTION
3 mins • 1 pt
What does PHP stand for?
Evaluate responses using AI:
OFF
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax to start a PHP script?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a variable in PHP?
$variable_name = value;
$variable_name = initial_value;
$variable_name = initial_value;
$variable_name = null;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to connect to a MySQL database in PHP?
mysqli_connect()
mysqli_connect_error()
pdo_connect()
mysql_connect()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to access the first element of an array in PHP?
$array[first]
$array[-1]
$array[1]
$array[0]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax to insert data into a MySQL table using PHP?
$sql = 'INSERT INTO table_name VALUES (value1, value2, value3)'
$sql = 'INSERT INTO table_name (column1, column2, column3) VALUES (value1, value2)'
$sql = 'INSERT INTO table_name (column1, column2, column3) VALUES (value1, value2, value3, value4)'
$sql = 'INSERT INTO table_name (column1, column2, column3) VALUES (value1, value2, value3)';
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? $number = 10; $number += 5; echo $number;
15
20
10
5
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
Google Drive Knowledge Check
Quiz
•
10th - 12th Grade
13 questions
Tin 12 - Bài 3: Giới thiệu MS Access
Quiz
•
1st - 12th Grade
10 questions
De 1 - Access
Quiz
•
9th - 12th Grade
10 questions
App Inventor Basic
Quiz
•
10th Grade
10 questions
kelas x pts
Quiz
•
10th Grade
10 questions
Bài ôn lớp 5_bài 2
Quiz
•
5th Grade - University
15 questions
Technology in medicine
Quiz
•
10th Grade
10 questions
Javascript & Client side scripting
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade