Deck 25: The Missing Linq Querying a Database
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/19
العب
ملء الشاشة (f)
Deck 25: The Missing Linq Querying a Database
1
The following syntax selects all of the records in the dataset:
Dim records = From employee In EmployeesDataSet.tblEmploy
Select employee
Dim records = From employee In EmployeesDataSet.tblEmploy
Select employee
True
2
If you are sorting records in ascending order, you need to include the keyword Ascending in the Order By clause.
False
3
In a query, the Where and Order By clauses are optional parts of the syntax.
True
4
Similar to the condition in If…Then…Else and Do…Loop statements, the ____ clause specifies a requirement that must be met for a record to be selected.
A) Select
C) From
B) Where
D) Order By
A) Select
C) From
B) Where
D) Order By
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 19 في هذه المجموعة.
فتح الحزمة
k this deck
5
The syntax for LINQ requires you to specify the variable's data type.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 19 في هذه المجموعة.
فتح الحزمة
k this deck
6
The Total operator returns the sum of the values in the group.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 19 في هذه المجموعة.
فتح الحزمة
k this deck
7
A dataset is a copy of the fields and records the application can access from a database.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 19 في هذه المجموعة.
فتح الحزمة
k this deck
8
The LINQ statement merely selects the records but does not assign them to the records variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 19 في هذه المجموعة.
فتح الحزمة
k this deck
9
The basic syntax to use the LINQ to select and arrange records in a data set is ____.
A) Dim variableName = In dataset.table From elementName
B) Dim variableName = From elementName In dataset.table
C) Dim In dataset.table From elementName = variableName
D) Dim From elementName In dataset.table = variableName
A) Dim variableName = In dataset.table From elementName
B) Dim variableName = From elementName In dataset.table
C) Dim In dataset.table From elementName = variableName
D) Dim From elementName In dataset.table = variableName
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 19 في هذه المجموعة.
فتح الحزمة
k this deck
10
The LINQ ____ operator returns a single value from a group of values.
A) collect
C) integrate
B) collapse
D) aggregate
A) collect
C) integrate
B) collapse
D) aggregate
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 19 في هذه المجموعة.
فتح الحزمة
k this deck
11
You use a(n) ____ to specify both the records to select in a dataset and the order in which to arrange the records.
A) query
C) inquiry
B) question
D) access
A) query
C) inquiry
B) question
D) access
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 19 في هذه المجموعة.
فتح الحزمة
k this deck
12
The ____ operator returns the smallest value in the group.
A) Max
C) Min
B) Smallest
D) Minimum
A) Max
C) Min
B) Smallest
D) Minimum
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 19 في هذه المجموعة.
فتح الحزمة
k this deck
13
In a query, the ____ clause is used to limit the records you want to view.
A) Select
C) Where
B) From
D) Order
A) Select
C) Where
B) From
D) Order
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 19 في هذه المجموعة.
فتح الحزمة
k this deck
14
You can create a query in Visual Basic 2010 using a language feature called ____.
A) Integrated Language Query
C) Structured Language
B) Language Query
D) Language Integrated Query
A) Integrated Language Query
C) Structured Language
B) Language Query
D) Language Integrated Query
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 19 في هذه المجموعة.
فتح الحزمة
k this deck
15
A dataset is stored in the computer's internal memory while the application is running.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 19 في هذه المجموعة.
فتح الحزمة
k this deck
16
The basic syntax for assigning a LINQ variable's contents to a BindingSource object is ____.
A) DataSource.bindingSource = AsDataView.variableName
B) DataSource.bindingSource = variableName.AsDataView
C) bindingSource.DataSource = AsDataView.variableName
D) bindingSource.DataSource = variableName.AsDataView
A) DataSource.bindingSource = AsDataView.variableName
B) DataSource.bindingSource = variableName.AsDataView
C) bindingSource.DataSource = AsDataView.variableName
D) bindingSource.DataSource = variableName.AsDataView
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 19 في هذه المجموعة.
فتح الحزمة
k this deck
17
The only calculations that are performed using the LINQ aggregate methods are Average and Count.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 19 في هذه المجموعة.
فتح الحزمة
k this deck
18
In a query, the ____ clause is used to sort the records in either ascending (the default) or descending order by one or more fields.
A) Order By
C) From
B) Select
D) Where
A) Order By
C) From
B) Select
D) Where
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 19 في هذه المجموعة.
فتح الحزمة
k this deck
19
In addition to using LINQ to sort and select the records in a dataset, you also can use it to perform arithmetic calculations on the fields in the records.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 19 في هذه المجموعة.
فتح الحزمة
k this deck

