You are on page 1of 4

Home / My courses /

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

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


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

Question 1
Incorrect

Mark 0.00 out of 1.00

The result of a SELECT statement can contain duplicate rows.

Select one:
True 

False

Question 2
Correct

Mark 1.00 out of 1.00

MySQL is

Select one:
a. A technique for writing reliable programs

b. A Programming language

c. A Relational Database Management System 

Question 3
Correct

Mark 1.00 out of 1.00

Which one of the following statements is used to create a table?

Select one:
a. CREATE table_name (column_typecolumn_name);

b. CREATE table_name (column_namecolumn_type);

c. CREATE TABLE table_name (column_namecolumn_type); 

d. CREATE TABLE table_name (column_typecolumn_name);


Question 4
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 ;

c. include 'filename'; 

d. #include ‘filename’;

Question 5
Correct

Mark 1.00 out of 1.00

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

Select one:
a. SQL+

b. SQL

c. MYSQL 

d. Oracle Database

Question 6
Correct

Mark 1.00 out of 1.00

This command sends active query to the database

Select one:
a. query();

b. my_query();

c. mysql_query() 

d. mysql_queries();
Question 7
Correct

Mark 1.00 out of 1.00

Which one of the following method is used to retrieve the number of rows affected by an INSERT, UPDATE, or DELETE query

Select one:
a. changed_rows()

b. affected_rows() 

c. new_rows()

d. num_rows()

Question 8
Correct

Mark 1.00 out of 1.00

Select * from employee where salary>10000 and dept_id=101;

Which of the following fields are displayed as output?

Select one:
a. Salary, dept_id

b. Employee

c. All the field of employee relation 

d. Salary
Question 9
Correct

Mark 1.00 out of 1.00

Which of these query will display the result, assume table name is employee ?

Select one:
a. Select name from employee 

b. Select employee from name

c. Select name

d. elect employee

Question 10
Correct

Mark 1.00 out of 1.00

If a PHP script opens a MySQL connection, the script will automatically close the connection after the script has finished executing?

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