PHP and MySQL Quiz

PHP and MySQL Quiz

10th Grade

10 Qs

quiz-placeholder

Similar activities

RDBMS  for class10

RDBMS for class10

10th - 12th Grade

10 Qs

Questionário formativo - SI - Mód 2

Questionário formativo - SI - Mód 2

10th - 12th Grade

10 Qs

PHP Pretest

PHP Pretest

10th Grade

15 Qs

Deletequery.php

Deletequery.php

10th Grade

8 Qs

QUIZ 3 - MySQL (Database, table, select, update)

QUIZ 3 - MySQL (Database, table, select, update)

9th - 12th Grade

15 Qs

Programming Quiz

Programming Quiz

8th - 10th Grade

15 Qs

Sains Komputer Tingkatan 5 - 3.3.6 Menggunakan Bahasa

Sains Komputer Tingkatan 5 - 3.3.6 Menggunakan Bahasa

1st Grade - Professional Development

10 Qs

Database dan CRUD

Database dan CRUD

10th Grade

13 Qs

PHP and MySQL Quiz

PHP and MySQL Quiz

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Nur Tyas

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?