0% found this document useful (0 votes)
521 views4 pages

Web Application Development 1 - Final Quiz 1

The document is a summary of a student's final quiz for a course on PHP and MySQL. It shows that the student answered 9 out of 10 questions correctly, earning a grade of 90% overall. The quiz consisted of multiple choice questions testing knowledge of SQL clauses, MySQL operating systems supported, database functions, and basic SQL queries.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
521 views4 pages

Web Application Development 1 - Final Quiz 1

The document is a summary of a student's final quiz for a course on PHP and MySQL. It shows that the student answered 9 out of 10 questions correctly, earning a grade of 90% overall. The quiz consisted of multiple choice questions testing knowledge of SQL clauses, MySQL operating systems supported, database functions, and basic SQL queries.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Home / My courses /

UGRD-IT6314-2037T /
Week 10: PHP and MySQL /
Final Quiz 1

Started on Thursday, 5 August 2021, 9:17 AM


State Finished
Completed on Thursday, 5 August 2021, 9:22 AM
Time taken 5 mins 10 secs
Marks 9.00/10.00
Grade 90.00 out of 100.00

Question 1
Correct

Mark 1.00 out of 1.00

The ______ clause allows us to select only those rows in the result relation of the ____ clause that satisfy a specified predicate.

Select one:
a. From, select

b. Where, from 

c. From, where

d. Select, from

Question 2
Correct

Mark 1.00 out of 1.00

MySQL runs on which operating systems?

Select one:
a. Any operating system at all

b. Unix and Linux only

c. Linux and Mac OS-X only

d. Unix, Linux, Windows and others 


Question 3
Correct

Mark 1.00 out of 1.00

The "mysql_select_db()" function allows you to select a particular database ?

Select one:
True 

False

Question 4
Correct

Mark 1.00 out of 1.00

Which one of the following methods is responsible for sending the query to the database?

Select one:
a. query_send()

b. send_query()

c. sendquery()

d. query() 

Question 5
Correct

Mark 1.00 out of 1.00

To use MySQL on your computer, you'll need?

Select one:
a. Perl, PHP or Java

b. FTP and Telnet

c. A Browser

d. Some sort of client program to access the databases 


Question 6
Correct

Mark 1.00 out of 1.00

To remove duplicate rows from the result set of a SELECT use the following keyword:

Select one:
a. None of the above

b. DISTINCT 

c. NO DUPLICATE

d. UNIQUE

Question 7
Correct

Mark 1.00 out of 1.00

Which of the following displays the unique values of the column.

Select ________ dept_name

from instructor;

Select one:
a. Distinct 

b. From

c. All

d. Name

Question 8
Correct

Mark 1.00 out of 1.00

The ________ clause is used to list the attributes desired in the result of a query.

Select one:
a. Distinct

b. From

c. Where

d. Select 
Question 9
Correct

Mark 1.00 out of 1.00

Assuming the table and fields below exists, what is wrong with the following mysql query example: mysql_query("INSERT INTO contacts
(firstName, lastName, phoneNumber) VALUES ('Robert', 'Smith')");

Select one:
a. There are more fields than values 

b. Nothing, everything is fine

c. There are more values than fields

Question 10
Incorrect

Mark 0.00 out of 1.00

The "mysql_error()" function returns the error description for a MYSQL operation?

Select one:
True

False 

◄ W10: Lesson 8 PHP and MySQL - Video Lecture 9

Jump to...

W11: Lesson 9 PHP with Advanced MySQL - Module ►

You might also like