0
Sign In
Sign Up for Free
Sign Up
We have detected that Javascript is not enabled in your browser. The dynamic nature of our site means that Javascript must be enabled to function properly. Please read our
terms and conditions
for more information.
{"ad_unit_id":"App_Resource_Sidebar_Upper","resource":{"id":20694565,"author_id":8286244,"title":"Chapter 7: MySQL","created_at":"2020-01-31T22:00:33Z","updated_at":"2020-02-01T00:45:24Z","sample":false,"description":"Sanchez, L. (2017). Web Programming with HTML, CSS, Bootstrap, JavaScript, JQuery, PHP, and MySQL . CreateSpace Independent Publishing Platform.\r\n\r\n","alerts_enabled":true,"cached_tag_list":"sql, chapt 7, cis 298","deleted_at":null,"hidden":false,"average_rating":null,"demote":false,"private":false,"copyable":true,"score":16,"artificial_base_score":0,"recalculate_score":true,"profane":false,"hide_summary":false,"tag_list":["sql","chapt 7","cis 298"],"admin_tag_list":[],"study_aid_type":"Quiz","show_path":"/quizzes/20694565","folder_id":24282975,"public_author":{"id":8286244,"profile":{"name":"rebeccawalton","about":null,"avatar_service":"gravatar","locale":"en-US","google_author_link":null,"user_type_id":156,"escaped_name":"Rebecca Walton","full_name":"Rebecca Walton","badge_classes":""}}},"width":300,"height":250,"rtype":"Quiz","rmode":"canonical","sizes":"[[[0, 0], [[300, 250]]]]","custom":[{"key":"rsubject","value":"Computer Science"},{"key":"env","value":"production"},{"key":"rtype","value":"Quiz"},{"key":"rmode","value":"canonical"},{"key":"uauth","value":"f"},{"key":"uadmin","value":"f"},{"key":"ulang","value":"en_us"},{"key":"ucurrency","value":"usd"}]}
{"ad_unit_id":"App_Resource_Sidebar_Lower","resource":{"id":20694565,"author_id":8286244,"title":"Chapter 7: MySQL","created_at":"2020-01-31T22:00:33Z","updated_at":"2020-02-01T00:45:24Z","sample":false,"description":"Sanchez, L. (2017). Web Programming with HTML, CSS, Bootstrap, JavaScript, JQuery, PHP, and MySQL . CreateSpace Independent Publishing Platform.\r\n\r\n","alerts_enabled":true,"cached_tag_list":"sql, chapt 7, cis 298","deleted_at":null,"hidden":false,"average_rating":null,"demote":false,"private":false,"copyable":true,"score":16,"artificial_base_score":0,"recalculate_score":true,"profane":false,"hide_summary":false,"tag_list":["sql","chapt 7","cis 298"],"admin_tag_list":[],"study_aid_type":"Quiz","show_path":"/quizzes/20694565","folder_id":24282975,"public_author":{"id":8286244,"profile":{"name":"rebeccawalton","about":null,"avatar_service":"gravatar","locale":"en-US","google_author_link":null,"user_type_id":156,"escaped_name":"Rebecca Walton","full_name":"Rebecca Walton","badge_classes":""}}},"width":300,"height":250,"rtype":"Quiz","rmode":"canonical","sizes":"[[[0, 0], [[300, 250]]]]","custom":[{"key":"rsubject","value":"Computer Science"},{"key":"env","value":"production"},{"key":"rtype","value":"Quiz"},{"key":"rmode","value":"canonical"},{"key":"uauth","value":"f"},{"key":"uadmin","value":"f"},{"key":"ulang","value":"en_us"},{"key":"ucurrency","value":"usd"}]}
Next up
Copy and Edit
You need to log in to complete this action!
Register for Free
20694565
Chapter 7: MySQL
Quiz by
Rebecca Walton
, updated more than 1 year ago
More
Less
Created by
Rebecca Walton
about 1 year ago
20
0
0
Description
Sanchez, L. (2017). Web Programming with HTML, CSS, Bootstrap, JavaScript, JQuery, PHP, and MySQL . CreateSpace Independent Publishing Platform.
No tags specified
sql
chapt 7
cis 298
computer science
{"ad_unit_id":"App_Resource_Leaderboard","width":728,"height":90,"rtype":"Quiz","rmode":"canonical","placement":1,"sizes":"[[[1200, 0], [[728, 90]]], [[0, 0], [[468, 60], [234, 60], [336, 280], [300, 250]]]]","custom":[{"key":"env","value":"production"},{"key":"rtype","value":"Quiz"},{"key":"rmode","value":"canonical"},{"key":"placement","value":1},{"key":"uauth","value":"f"},{"key":"uadmin","value":"f"},{"key":"ulang","value":"en_us"},{"key":"ucurrency","value":"usd"}]}
Resource summary
Question 1
Question
In MySQL, data in a database are often stored in one or more tables.
Answer
true
false
Question 2
Question
In MySQL, what is a table column called?
Answer
a record
an object
a field
a relation
Question 3
Question
Which of the following statements is correct?
Answer
A database is used to create a DBMS
A DBMS is used to create a database
A DBMS is the same as a database
A DBMS and a database are not related
Question 4
Question
MySQL is a database
Answer
true
false
Question 5
Question
If the following connection is used in your PHP statement, what is the password for the account? $conn = mysqli_connect('a', 'b', 'c');
Answer
a
b
c
no password
Question 6
Question
In MySQL, which of the following statement is used to create a database?
Answer
CREATE DATABASE schoolDB
CREATE DATABASE
CREATE schoolDB
DATABASE schoolDB
Question 7
Question
In MySQL, suppose an SQL statement is stored in a variable called $query and the connection is stored in $conn, how do you execute the statement?
Answer
mysqli_query($conn, $query);
mysqli_query($query, $conn);
mysqli_execute_query($conn, $query);
mysqli_execute_query($query, $conn);
Question 8
Question
In MySQL, before executing an SQL CREATE TABLE statement, what must be done?
Answer
You must know how many records are in the table
You must know the data for the table
You must select a foreign key
You must select a database to add the table
Question 9
Question
What is the primary key of the a table?
Answer
One or more fields that contain familiar values
One or more fields that can uniquely identify each record
One or more fields that have meanings to the end users
One or more fields that are key to the success of the table
Question 10
Question
In MySQL, before you can execute any SQL statement, you must ____________ to the database.
Answer
connect
find a table
use primary key of a table
know how many tables are related
Question 11
Question
In SQL, what does the following statement do? INSERT INTO abc (field1Name, field2Name) VALUES (field1Value, field2Value)
Answer
Insert two rows into a database called abc
Insert two rows into a table called abc
Insert one row into a database called abc
Insert one row into a table called abc
Question 12
Question
In SQL, what does the following statement do? SELECT * FROM student;
Answer
Select asterisk from a table called student
Select asterisk from a database called student
Select all rows and columns from a table called student
Select all rows and columns from a database called student
Question 13
Question
In SQL, what does the following statement do? UPDATE student SET studentGpa = 4.0 WHERE studentId = 4;
Answer
Set all students' GPA to 4.0
Set the student's GPA to 4.0 whose student ID is 4 in the student table
Set all student's GPA to 4.0 where possible
Set the student's GPA to 4.0 whose student ID is 4 in the student database
Question 14
Question
In SQL, what does the following statement do? DELETE FROM student;
Answer
Delete one row in a database called abc
Delete one row in a table called abc
Delete all rows in a database called abc
Delete all rows in a table called abc
Question 15
Question
In MySQL, after all the SQL statements are executed, you must ______ to the database.
Answer
thank
close the connection
save the data
exit
Question 16
Question
In PHP, why should you use mysqli_real_escape_string () function?
Answer
You will get the real string from the HTML form
The codes will run faster
The codes will be more secure
none of the above
Question 17
Question
In MySQL, if you add AUTO_INCREMENT attribute to a field of a table, ________________
Answer
the table will automatically increase in size
the field will automatically increase in size
MySQL will automatically add a unique integer to the field when a new record is inserted
MySQL will automatically add a new record to the table
Question 18
Question
Which of the following is NOT a data type in MySQL?
Answer
BOOLEAN
DECIMAL
VARCHAR
DATE
Question 19
Question
What is special about the following URL? Contentupdate.php?id=2
Answer
The browser requests a page called contentupdate.php which is second page
The browser requests a page called contentupdate.php and the page id is 2
The browser requests a page with the password of 2
The browser requests a page called contentupdate.php and passes an id value of 2 that the contentupdate.php page usually needs
Show full summary
Hide full summary
Similar
Computing Hardware - CPU and Memory
ollietablet123
SFDC App Builder 2
Parker Webb-Mitchell
Intake7 BIM L1
Stanley Chia
Data Types
Jacob Sedore
CCNA Answers – CCNA Exam
Abdul Demir
Software Processes
Nurul Aiman Abdu
Design Patterns
Erica Solum
Abstraction
Shannon Anderson-Rush
Spyware
Sam2
Database Replication
Michael Mahfouz
Data Analytics
anelvr
Browse Library
{"ad_unit_id":"App_Resource_Leaderboard","width":728,"height":90,"rtype":"Quiz","rmode":"canonical","placement":2,"sizes":"[[[0, 0], [[970, 250], [970, 90], [728, 90]]]]","custom":[{"key":"env","value":"production"},{"key":"rtype","value":"Quiz"},{"key":"rmode","value":"canonical"},{"key":"placement","value":2},{"key":"uauth","value":"f"},{"key":"uadmin","value":"f"},{"key":"ulang","value":"en_us"},{"key":"ucurrency","value":"usd"}]}