Deck 17: Databases
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/48
العب
ملء الشاشة (f)
Deck 17: Databases
1
Column names in a database are:
A) case sensitive
B) similar to Java data types
C) not case sensitive
D) always uppercase letters
A) case sensitive
B) similar to Java data types
C) not case sensitive
D) always uppercase letters
C
2
If you wish to sort the results of an SQL query, you can use the ________ clause.
A) SORT BY
B) ALIGN ROW
C) ORDER BY
D) ASCEND
A) SORT BY
B) ALIGN ROW
C) ORDER BY
D) ASCEND
C
3
A result set is an object that is somewhat similar to a collection and:
A) contains the results of an SQL statement
B) allows the program to execute an SQL statement
C) predicts the outcome of an SQL statement
D) provides rules for how an SQL statement should be executed
A) contains the results of an SQL statement
B) allows the program to execute an SQL statement
C) predicts the outcome of an SQL statement
D) provides rules for how an SQL statement should be executed
A
4
If you try to store duplicate data in a primary key column:
A) the column is duplicated
B) an error will occur
C) the duplicate data will have concurrency issues
D) The primary key column will not display the duplicate data
A) the column is duplicated
B) an error will occur
C) the duplicate data will have concurrency issues
D) The primary key column will not display the duplicate data
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
5
This type of SQL statement is used to retrieve the rows from a table.
A) GET
B) SELECT
C) READ
D) RETRIEVE
A) GET
B) SELECT
C) READ
D) RETRIEVE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
6
In SQL, this character can be used as a wildcard to represent a single character.
A) %
B) $
C) _
D) *
A) %
B) $
C) _
D) *
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
7
In SQL, the not equal-to operator is:
A) !=
B) NOT
C) ||
D) <>
A) !=
B) NOT
C) ||
D) <>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
8
What do most developers prefer to use when developing applications that work with an intensive amount of data?
A) Text files
B) Binary files
C) A database management system
D) Java DB
A) Text files
B) Binary files
C) A database management system
D) Java DB
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
9
The data that is stored in a row is divided into:
A) sections
B) tables
C) bytes
D) columns
A) sections
B) tables
C) bytes
D) columns
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
10
What SQL operator can be used to disqualify search criteria in a WHERE clause?
A) AND
B) NOT
C) EXCLUDE
D) NOR
A) AND
B) NOT
C) EXCLUDE
D) NOR
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
11
SQL stands for:
A) structured query language
B) standard equivalent language
C) semiconductor qualified language
D) Simple equation library
A) structured query language
B) standard equivalent language
C) semiconductor qualified language
D) Simple equation library
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
12
Which of one the following SQL data types would be the best choice for storing financial data?
A) INT
B) REAL
C) DOUBLE
D) VARCHAR
A) INT
B) REAL
C) DOUBLE
D) VARCHAR
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
13
The DBMS works directly with the data, and sends the results of operations:
A) back to the application
B) along the encrypted data path
C) to the unified data component
D) back to the Web server
A) back to the application
B) along the encrypted data path
C) to the unified data component
D) back to the Web server
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
14
This is the standard language for working with database management systems.
A) SQL
B) BASIC
C) ADA
D) COBOL
A) SQL
B) BASIC
C) ADA
D) COBOL
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
15
What SQL operator can be used to perform a search for a substring?
A) STR
B) LIKE
C) WHERE
D) SUB
A) STR
B) LIKE
C) WHERE
D) SUB
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
16
The data that is stored in a table is organized in:
A) rows
B) folders
C) pages
D) files
A) rows
B) folders
C) pages
D) files
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
17
Of the following column names, which one is most likely a primary key column?
A) Price
B) Description
C) ItemNumber
D) Quantity
A) Price
B) Description
C) ItemNumber
D) Quantity
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
18
What does JDBC stand for?
A) Java data binary collection
B) Java database connectivity
C) Java database collection
D) Java data basic computation
A) Java data binary collection
B) Java database connectivity
C) Java database collection
D) Java data basic computation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
19
What must you have installed on your system before you can use JDBC to access a database?
A) DBMS
B) Java
C) Both A and B
D) Neither A nor B
A) DBMS
B) Java
C) Both A and B
D) Neither A nor B
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
20
Which of the following shows how a single quote is represented as part of a string in SQL?
A) _'
B) "'"
C) /'
D) ''
A) _'
B) "'"
C) /'
D) ''
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
21
Appending the attribute ;create=true to the database URL:
A) creates a new database
B) creates a new table
C) creates a new row
D) creates a new column
A) creates a new database
B) creates a new table
C) creates a new row
D) creates a new column
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
22
What is the default concurrency level of a ResultSet object?
A) Public
B) Updatable
C) Private
D) Read-only
A) Public
B) Updatable
C) Private
D) Read-only
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
23
To what package does the Connection interface belong?
A) java.swing
B) java.awt
C) java.sql
D) java.io
A) java.swing
B) java.awt
C) java.sql
D) java.io
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
24
Which SQL statement is used to delete a table from a database?
A) REM TABLE
B) DEL TABLE
C) DROP TABLE
D) ERASE TABLE
A) REM TABLE
B) DEL TABLE
C) DROP TABLE
D) ERASE TABLE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
25
Which Statement interface method should be used to execute an INSERT statement?
A) executeUpdate
B) executeStatement
C) executeQuery
D) executeSQL
A) executeUpdate
B) executeStatement
C) executeQuery
D) executeSQL
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
26
In an entity relationship diagram, the primary keys are denoted with:
A) (PK)
B) (1)
C) (KEY)
D) (PRIME)
A) (PK)
B) (1)
C) (KEY)
D) (PRIME)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
27
What string lists the protocol that should be used to access a database, the name of the database, and potentially other items?
A) JDBC driver
B) Database URL
C) JDBC locator
D) Database specifier
A) JDBC driver
B) Database URL
C) JDBC locator
D) Database specifier
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
28
Although SQL is a language, you don't use it to write applications.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
29
What is determined by the following code?
ResultSet.last();
Int numRows = resultSet.getRow();
ResultSet.first();
A) the number of rows in the result set
B) the number of columns in the result set
C) the value of the cursor's current position
D) the sum of all rows in the result set
ResultSet.last();
Int numRows = resultSet.getRow();
ResultSet.first();
A) the number of rows in the result set
B) the number of columns in the result set
C) the value of the cursor's current position
D) the sum of all rows in the result set
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
30
By default, ResultSet objects allows you to move the cursor:
A) backward only
B) vertically
C) forward only
D) horizontally
A) backward only
B) vertically
C) forward only
D) horizontally
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
31
In SQL, this statement is used to change the contents of an existing row in a table:
A) SET ROW
B) CHANGE
C) UPDATE
D) REFRESH
A) SET ROW
B) CHANGE
C) UPDATE
D) REFRESH
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
32
The columns in a table are assigned SQL data types.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
33
A column in one table that references a primary key in another table is known as what?
A) Secondary key
B) Foreign key
C) Referential key
D) Meta key
A) Secondary key
B) Foreign key
C) Referential key
D) Meta key
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
34
You use this statement in SQL to insert a new row into a table:
A) UPDATE
B) ADD
C) NEW
D) INSERT
A) UPDATE
B) ADD
C) NEW
D) INSERT
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
35
What term refers to data that describes other data?
A) Pseudo-data
B) Micro data
C) Abstract data
D) Meta data
A) Pseudo-data
B) Micro data
C) Abstract data
D) Meta data
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
36
This SQL statement can be used to create a database table:
A) NEW TABLE
B) MAKE TABLE
C) BUILD TABLE
D) CREATE TABLE
A) NEW TABLE
B) MAKE TABLE
C) BUILD TABLE
D) CREATE TABLE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
37
A qualified column name takes the following form:
A) ColumnName.TableName
B) TableName.ColumnName
C) RowName.TableName
D) DatabaseURL.ColumnName
A) ColumnName.TableName
B) TableName.ColumnName
C) RowName.TableName
D) DatabaseURL.ColumnName
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
38
Which Statement interface method should be used to execute a SELECT statement?
A) executeSQL
B) executeStatement
C) executeUpdate
D) executeQuery
A) executeSQL
B) executeStatement
C) executeUpdate
D) executeQuery
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
39
What Java class is a Swing component that displays data in a two-dimensional table?
A) JTable
B) JFrame
C) JPanel
D) JTable2D
A) JTable
B) JFrame
C) JPanel
D) JTable2D
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
40
In SQL, you use this statement to delete one or more rows from a table:
A) DELETE
B) DROP ROW
C) REMOVE
D) PURGE
A) DELETE
B) DROP ROW
C) REMOVE
D) PURGE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
41
SQL does not provide functions for performing calculations.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
42
SQL statements that are stored in the DBMS are called resident queries.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
43
System designers commonly use UML diagrams to show the relationships between database tables.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
44
No two rows in a table can have the same value in the primary key column
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
45
In SQL, the REFERENCES qualifier ensures referential integrity between tables.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
46
In a transaction, all updates to database must be successfully executed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
47
The term commit refers to undoing changes to a database.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
48
In SQL, the equal to operator is ==, which is the same as Java.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck