Section 1

Preview this deck

In relational database theory, a table is also known as a:

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (60)

Section 1

(50 cards)

In relational database theory, a table is also known as a:

Front

Relation

Back

The PHP statement $a = new classname("First"); denotes a(n):

Front

Constructor

Back

In a PHP __________, you can group together functionality that may be reused in multiple classes.

Front

Trait

Back

The ___________ MySQL statement allows a specified database user to grant his or her own privileges to others.

Front

WITH GRANT OPTION

Back

In object-oriented programming, __________ are properties or variables that relate to an object.

Front

Attributes

Back

What is represented by the C in the SQL statement SELECT C.Name FROM Customers AS C?

Front

table alias

Back

You can use a(n) ____________ as an alternative to implementing MySQL user passwords.

Front

authentication plugin

Back

What is the definition of a relational database schema?

Front

Complete set of table designs

Back

Which of the following commands do you use to specify which MySQL database you want to use?

Front

USE

Back

Which of the following shows the correct definition of a PHP exception?

Front

throw new Exception($message, $code);

Back

The object-oriented principle of ____________ means that different classes can have different behaviors for the same operation.

Front

Polymorphism

Back

A primary key can consist of ___________ column(s).

Front

one or more

Back

Which of the following is NOT an example of an update anomaly?

Front

Creation

Back

A SQL join with a WHERE clause is known as a:

Front

equi-join

Back

Atomic column values mean that you store only _______ attribute(s) in each row.

Front

1

Back

A(n) ___________ join represents the Cartesian product of two tables in a SQL database.

Front

Full

Back

.A(n) __________ shows which functions were executing at the time the exception was raised.

Front

Backtrace

Back

What is the default PHP class access modifier?

Front

Public

Back

Which of the following MySQL privileges allows users to run stored procedures and functions?

Front

EXECUTE

Back

Use the _________ keyword to specify that one class is to be a subclass of another.

Front

Extends

Back

Which SQL clause follows INSERT INTO?

Front

VALUES

Back

How do you create a new MySQL database?

Front

create database dbname;

Back

In PHP, the ________ block always is executed after the try and catch blocks.

Front

Finally

Back

You create methods by declaring ________ within a PHP class definition.

Front

Functions

Back

Having many _________ values in your database wastes space and causes problems working out totals.

Front

Null

Back

Which of the following is NOT a built-in method of the Exception PHP class?

Front

getString()

Back

In a relational database table, each value must have the _____________ specified by its column.

Front

data type

Back

Which of the following programming languages does NOT support true multiple inheritance?

Front

PHP

Back

Which of the following shows the correct use of the final PHP keyword?

Front

final function operation() {}

Back

The opposite of the MySQL GRANT statement is:

Front

REVOKE

Back

Which of the following is NOT a valid optional parameter of the PHP Exception class?

Front

Stack trace

Back

What does SQL stand for?

Front

Structured Query Language

Back

Which of the following MySQL privileges allows users to remove databases, tables, or views?

Front

DROP

Back

In PHP it's considered good coding practice to implement _______ try blocks in your code.

Front

Small

Back

Use the SQL _____________ keyword to perform regular expression matching.

Front

REGEXP

Back

LOCK TABLES is an example of a(n):

Front

administrator privilege

Back

In a database-backed PHP application, the _________ opens a connection to the web database.

Front

PHP engine

Back

In PHP you can have __________ catch block(s) associated with a single try block.

Front

More than one

Back

What is the most commonly used type of database according to the book's authors?

Front

Relational

Back

In the ANSI SQL standard, how many tables can be joined?

Front

Unlimited

Back

In creating your own subclass Exceptions, you can override the ________ built-in function.

Front

toString()

Back

Most of the public PHP exception methods are:

Front

Final

Back

What is the default sort order used by the SQL ORDER BY clause?

Front

Ascending

Back

In PHP, the keyword __________ triggers the exception-handling mechanism.

Front

Throw

Back

Which of the following is a valid MySQL connection command?

Front

mysql -h dbserver -u joe -p

Back

The SELECT ___________ wildcard operator matches all the columns in the specified table or tables.

Front

*

Back

A foreign key should have the same or comparable _________ as its related primary key.

Front

data type

Back

What is phpMyAdmin?

Front

browser-based MySQL management tool

Back

________ are methods, actions, or functions that an object can perform to modify itself or perform some external effect.

Front

Operations

Back

Which of the following WHERE clause operators tests whether two values are not equal?

Front

!=

Back

Section 2

(10 cards)

Why is the query $query = "SELECT ISBN, Author, Title, Price FROM Book WHERE $searchtype = '$searchterm'"; problematic?

Front

susceptible to SQL injection

Back

Which of the following functions changes the default database?

Front

mysqli_select_db()

Back

In PHP-MySQL connectivity, what is the purpose of the @ symbol?

Front

error suppression

Back

MySQL ____________ can speed up query execution as well as protect against SQL injection attacks.

Front

prepared statements

Back

The expression $result->free();:

Front

disconnects from the MySQL database

Back

What is the basic PHP library for connecting to MySQL?

Front

mysqli

Back

max_connections is a ____________ parameter that determines the simultaneous MySQL connection limit.

Front

MySQL

Back

What is the first step in querying a MySQL database from the web?

Front

check and filter data coming from the user

Back

You can use the generic _______ functions if you want to use a database that doesn't already have a PHP library.

Front

ODBC

Back

In database connection string terminology, DSN stands for:

Front

data source name

Back