
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
MOS KELAS 10
Quiz
•
10th Grade
10 questions
Questionário formativo - SI - Mód 2
Quiz
•
10th - 12th Grade
10 questions
Photoshop Layers Review
Quiz
•
9th - 12th Grade
10 questions
IT QUIZ
Quiz
•
10th - 12th Grade
15 questions
Adobe Digital Design 1.00 (Part 1)
Quiz
•
9th - 12th Grade
10 questions
TLJ Ulangan Harian Bab 5-6 A
Quiz
•
9th - 12th Grade
12 questions
PROGRAMACIÓN
Quiz
•
10th Grade
10 questions
MICROSOFT WORD (ASESMEN FORMATIF)
Quiz
•
10th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
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
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade