PHP + MySQL - Quizizz
PHP + MySQL - Quizizz
Worksheets Name
PHP + MySQL
Class
Total questions: 25
Worksheet time: 13mins
Date
Instructor name: Mrs. Monika Steinberg
2. Which among the following is the correct delimiters that surround PHP server scripts?
a) <script>...</script> b) <&>...</&>
c) <?php...?> d) <?php>...</?>
3. How do you get information from a form that is submitted using the "get" method?
a) $_GET[]; b) Request.QueryString;
c) Request.Form;
4. When using the POST method, variables are displayed in the URL:
a) True b) False
a) ++count b) $count++;
c) count++; d) $count =+1
7. The if statement is used to execute some code only if a specified condition is true
a) True b) False
https://quizizz.com/print/quiz/5d14986fddc30a001a6a7ef0 1/6
5/2/24, 1:39 AM PHP + MySQL | Quizizz
a) A PHP script starts with <?php and ends b) Only in a separate file which is linked to the
with ?> html page
c) Using curled brackets {php} {/php} d) Just like other html tags: <php> </php>
a) It's never case sensitive, don't worry about b) All the time!
it.
c) When referring to classes, functions or d) Only when referring to variables
variables
a) $mysqli->select_db('databasename'); b) mysqli=select_db('databasename');
c) mysqli->select_db('databasename'); d) $mysqli=select_db('databasename');
a) MySQL b) mysqli
c) mysqly d) mysql
14. Which method returns the error code generated from the execution of the last MySQL
function?
a) errno() b) errorno()
c) errnumber() d) errornumber()
https://quizizz.com/print/quiz/5d14986fddc30a001a6a7ef0 2/6
5/2/24, 1:39 AM PHP + MySQL | Quizizz
15. Which one of the following methods can be used to diagnose and display info about a MySQL
connection error?
a) mysqli_connect_error() b) connect_error()
c) connect_errno() d) mysqli_connect_errno()
16. Which method is responsible for sending the query to the database?
a) sendquery() b) query()
c) send_query() d) query_send()
a) Database b) Table
c) Column d) None of the above
a) Descending b) Ascending
20. A relational database ___________ is a data structure used to store and organize information.
a) View b) Table
c) Report d) Stored Procedure
22. MySQL is
https://quizizz.com/print/quiz/5d14986fddc30a001a6a7ef0 3/6
5/2/24, 1:39 AM PHP + MySQL | Quizizz
23. What SQL clause is used to restrict the rows returned by a query?
a) FROM b) HAVING
c) WHERE d) AND
https://quizizz.com/print/quiz/5d14986fddc30a001a6a7ef0 4/6
5/2/24, 1:39 AM PHP + MySQL | Quizizz
Answer Keys
https://quizizz.com/print/quiz/5d14986fddc30a001a6a7ef0 5/6
5/2/24, 1:39 AM PHP + MySQL | Quizizz
https://quizizz.com/print/quiz/5d14986fddc30a001a6a7ef0 6/6