Deck 12: Access Databases and Linq
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/50
Play
Full screen (f)
Deck 12: Access Databases and Linq
1
In most cases, you will use the ____ object to save changes to the database, because it can handle saving data to multiple tables in the DataSet.
A) DataSet
B) TableAdapter
C) TableAdapterManager
D) BindingSource
A) DataSet
B) TableAdapter
C) TableAdapterManager
D) BindingSource
C
2
One restriction of a relational database is that it may contain only one table.
False
3
The most commonly used aggregate operators are Average, Count, Max, Min, and Sum.
True
4
A group of related records is called a ____.
A) table
B) key
C) field
D) database
A) table
B) key
C) field
D) database
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
In order to access the data stored in a database, an application needs to be connected to the database.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
Each record in a table contains ____ fields.
A) different
B) the same
C) identical
D) related
A) different
B) the same
C) identical
D) related
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
You may only bind an object to a control that the computer creates for you.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
A ____ is a group of related fields that contain all of the necessary data about a specific person, place, or thing.
A) table
B) key
C) field
D) record
A) table
B) key
C) field
D) record
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
Controls in an interface that is connected to objects in the dataset are called ____ controls.
A) default
B) parameterized
C) linked
D) bound
A) default
B) parameterized
C) linked
D) bound
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
Before an application can access the data stored in a database, you need to connect the application to the database using ____.
A) the Preview Data dialog box
B) bound controls
C) the Data Source Configuration Wizard
D) DataGridView controls
A) the Preview Data dialog box
B) bound controls
C) the Data Source Configuration Wizard
D) DataGridView controls
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
A dataset is stored in the computer's ____ memory.
A) external
B) volatile
C) internal
D) fixed
A) external
B) volatile
C) internal
D) fixed
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
The ____ stores objects that do not appear in the user interface when an application is running.
A) component tray
B) TableAdapter object
C) dataset
D) BindingSource object
A) component tray
B) TableAdapter object
C) dataset
D) BindingSource object
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
Databases created using Microsoft Access are ____ databases.
A) object-oriented
B) Web
C) transparent
D) relational
A) object-oriented
B) Web
C) transparent
D) relational
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
The ____ object stores the information you want to access from the database.
A) DataSet
B) BindingNavigator
C) TableAdapterManager
D) BindingSource
A) DataSet
B) BindingNavigator
C) TableAdapterManager
D) BindingSource
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
The copy of the data that is accessed by the application is referred to as a(n) _____.
A) database
B) dataset
C) table
D) record
A) database
B) dataset
C) table
D) record
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
Connecting an object to a control is called ____.
A) binding
B) linking
C) securing
D) updating
A) binding
B) linking
C) securing
D) updating
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
The ____ object connects the database to the DataSet object.
A) TableAdapter
B) BindingNavigator
C) TableAdapterManager
D) BindingSource
A) TableAdapter
B) BindingNavigator
C) TableAdapterManager
D) BindingSource
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
When an application is running, you can use the ____ control to move from one record to the next in the dataset, as well as to add or delete a record and save any changes made to the dataset.
A) Binding Source
B) Binding
C) DataGridView
D) BindingNavigator
A) Binding Source
B) Binding
C) DataGridView
D) BindingNavigator
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
A ____ is a single item of information about a person, place, or thing.
A) table
B) key
C) field
D) record
A) table
B) key
C) field
D) record
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
You can use Visual Basic to access the data stored in databases by using a database management system.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
The AutoSizeColumnsMode property has ____ different settings that control the way the column widths are sized in the DataGridView control.
A) six
B) seven
C) eight
D) nine
A) six
B) seven
C) eight
D) nine
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
Match each item with a statement below.
a.LINQ
f.primary key
b.relational database
g.exception
c.dataset
h.cell
d.computer database
i.foreign key
e.database management system
An intersection of a row and column in a DataGridView.
a.LINQ
f.primary key
b.relational database
g.exception
c.dataset
h.cell
d.computer database
i.foreign key
e.database management system
An intersection of a row and column in a DataGridView.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
Exception handling in your code takes the form of the ____ statement.
A) Try...Catch
B) Try...Exception
C) Fix...Exception
D) Exception...Handle
A) Try...Catch
B) Try...Exception
C) Fix...Exception
D) Exception...Handle
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
In a two-table database, one of the tables is referred to as the parent table and the other is referred to as the ____________________ table.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
The ____ object provides the connection between the DataSet and the bound controls on the form.
A) ToolStrip
B) BindingNavigator
C) TableAdapterManager
D) BindingSource
A) ToolStrip
B) BindingNavigator
C) TableAdapterManager
D) BindingSource
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
The _________________________ Wizard lists a connection to the database file in the Server Explorer window and adds a dataset's name to the Data Sources window.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
Match each item with a statement below.
a.LINQ
f.primary key
b.relational database
g.exception
c.dataset
h.cell
d.computer database
i.foreign key
e.database management system
An electronic file that contains an organized collection of related information.
a.LINQ
f.primary key
b.relational database
g.exception
c.dataset
h.cell
d.computer database
i.foreign key
e.database management system
An electronic file that contains an organized collection of related information.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
Match each item with a statement below.
a.LINQ
f.primary key
b.relational database
g.exception
c.dataset
h.cell
d.computer database
i.foreign key
e.database management system
A database that stores information in tables composed of columns and rows.
a.LINQ
f.primary key
b.relational database
g.exception
c.dataset
h.cell
d.computer database
i.foreign key
e.database management system
A database that stores information in tables composed of columns and rows.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
Match each item with a statement below.
a.LINQ
f.primary key
b.relational database
g.exception
c.dataset
h.cell
d.computer database
i.foreign key
e.database management system
A field in the child table that is used solely to link information to an appropriate record in the parent table.
a.LINQ
f.primary key
b.relational database
g.exception
c.dataset
h.cell
d.computer database
i.foreign key
e.database management system
A field in the child table that is used solely to link information to an appropriate record in the parent table.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
If a table object's control type is changed from DataGridView to ____________________, the computer automatically provides the appropriate controls when you drag the table object to the form.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
You can create a query in Visual Basic 2012 using a language feature called ____.
A) Query Language Creator
B) Structured Query Language
C) Visual Basic Query
D) Language Integrated Query
A) Query Language Creator
B) Structured Query Language
C) Visual Basic Query
D) Language Integrated Query
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
The way Visual Basic saves changes to a local database file is determined by the file's _________________________ property.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
A ____ specifies the fields and records to retrieve from the database, as well as the order in which to arrange the fields and records.
A) dataset
B) query
C) database builder
D) component tray
A) dataset
B) query
C) database builder
D) component tray
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
Match each item with a statement below.
a.LINQ
f.primary key
b.relational database
g.exception
c.dataset
h.cell
d.computer database
i.foreign key
e.database management system
A product for creating computer databases.
a.LINQ
f.primary key
b.relational database
g.exception
c.dataset
h.cell
d.computer database
i.foreign key
e.database management system
A product for creating computer databases.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
The BindingSource object stores the position of the record pointer in its ____________________ property.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
A(n) ____ operator returns a single value from a group of values.
A) aggregate
B) group
C) single
D) convert
A) aggregate
B) group
C) single
D) convert
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
Match each item with a statement below.
a.LINQ
f.primary key
b.relational database
g.exception
c.dataset
h.cell
d.computer database
i.foreign key
e.database management system
A language feature in Visual Basic 2012 that can be used to create a query.
a.LINQ
f.primary key
b.relational database
g.exception
c.dataset
h.cell
d.computer database
i.foreign key
e.database management system
A language feature in Visual Basic 2012 that can be used to create a query.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
Match each item with a statement below.
a.LINQ
f.primary key
b.relational database
g.exception
c.dataset
h.cell
d.computer database
i.foreign key
e.database management system
A copy of the data (fields and records) the application can access from the database.
a.LINQ
f.primary key
b.relational database
g.exception
c.dataset
h.cell
d.computer database
i.foreign key
e.database management system
A copy of the data (fields and records) the application can access from the database.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
Match each item with a statement below.
a.LINQ
f.primary key
b.relational database
g.exception
c.dataset
h.cell
d.computer database
i.foreign key
e.database management system
Database field(s) that uniquely identifies each record.
a.LINQ
f.primary key
b.relational database
g.exception
c.dataset
h.cell
d.computer database
i.foreign key
e.database management system
Database field(s) that uniquely identifies each record.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
Match each item with a statement below.
a.LINQ
f.primary key
b.relational database
g.exception
c.dataset
h.cell
d.computer database
i.foreign key
e.database management system
An error that occurs while an application is running.
a.LINQ
f.primary key
b.relational database
g.exception
c.dataset
h.cell
d.computer database
i.foreign key
e.database management system
An error that occurs while an application is running.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
What is a relational database?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
Describe the default action taken by Visual Basic if you do not take deliberate steps in your code to handle exceptions.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
Describe how table data is displayed using the DataGridView control.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
What two methods are used in conjunction with previewing the contents of a dataset and explain their use?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
Name five aggregate methods LINQ provides when querying a dataset.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
How does one have the computer create a bound control?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
Describe two ways to bind an object in a dataset to an existing control on the form.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
What buttons are contained on a BindingNavigator control and what additional items can you include on a BindingNavigator control?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
Why is the DataGridView control one of the most popular controls for displaying table data?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
What are the advantages of storing data in a relational database?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck