0% found this document useful (0 votes)
732 views

Web Application Development 1 - Final Quiz 1

This document is a summary of a student's final quiz results for their Week 10 course on PHP and MySQL. The student answered all 10 questions correctly, completing the quiz in 9 minutes and 45 seconds and earning a perfect score of 100% overall.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
732 views

Web Application Development 1 - Final Quiz 1

This document is a summary of a student's final quiz results for their Week 10 course on PHP and MySQL. The student answered all 10 questions correctly, completing the quiz in 9 minutes and 45 seconds and earning a perfect score of 100% overall.
Copyright
© © All Rights Reserved
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:35 AM


State Finished
Completed on Thursday, 5 August 2021, 9:44 AM
Time taken 9 mins 45 secs
Marks 10.00/10.00
Grade 100.00 out of 100.00

Question 1
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', '123-983-2929')");

Select one:
a. There are more fields than values

b. There are more values than fields

c. Nothing, everything is fine 

Question 2
Correct

Mark 1.00 out of 1.00

Function that select database.

Select one:
a. mysql_select_db(); 

b. my_db_select();

c. select_db();

Question 3
Correct

Mark 1.00 out of 1.00

The INSERT INTO statement is not used to add new records to a database table?

Select one:
True

False 
Question 4
Correct

Mark 1.00 out of 1.00

The result of a SELECT statement can contain duplicate rows.

Select one:
True

False 

Question 5
Correct

Mark 1.00 out of 1.00

The query given below will not give an error. Which one of the following has to be replaced to get the desired output?

Select ID, name, dept name, sal * 1.1

where instructor;

Select one:
a. WHERE 

b. Instructor

c. ID

d. sal *1.1

Question 6
Correct

Mark 1.00 out of 1.00

Which one of the following statements should be used to include a file?

Select one:
a. @include 'filename';

b. #include ‘filename’;

c. #include ;

d. include 'filename'; 
Question 7
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 values than fields

b. There are more fields than values 

c. Nothing, everything is fine

Question 8
Correct

Mark 1.00 out of 1.00

This command sends active query to the database

Select one:
a. mysql_query() 

b. my_query();

c. mysql_queries();

d. query();

Question 9
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 10
Correct

Mark 1.00 out of 1.00

Which one of the following databases has PHP supported almost since the beginning?

Select one:
a. Oracle Database

b. MYSQL 

c. SQL

d. SQL+

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

Jump to...

W11: Lesson 9 PHP with Advanced MySQL - Module ►

You might also like