Home
10th Grade
11th And 12th
11th Grade
12th Grade
3rd Grade
4th Grade
5th Grade
6th Grade
7th Grade
8th Grade
9th Grade
Advance Accountancy
Auditing
Computer Aptitude
Direct And Indirect Taxation
Exams
General Hindi
Indian Finance System
Information Technology And Application In Business
Macro Economics
Town Planning
Aerospace And Aeronautical
Analytical Instrumentation
Banking Awareness
Banking Exam
Biochemistry
Bioinformatics
Biology
Biotechnology
Business Statistics
C Program
C Programming
C++ Programming
Career Aptitude Test
Cell Biology
Central Superior Service (css)
Chemical Engineering
Chemistry
Civil Engineering
Commerce
Computer
Computer Fundamentals
Computer Science
Cost Accounting
Css
Database
Drug And Pharmaceutical Biotechnology
Ecat And Mcat Entry Test
Economics
Electrical Engineering
Electrical Engineering Questions
Electrical Measurement And Instrumentation
Engineering
English
English Literature
Environment Management
Environmental Biotechnology
Enzyme Technology
Financial Management And Financial Markets
Gate
General Knowledge
Graduate Assessment Test (gat)
Health And Physical
Heat Transfer
Html
Human Anatomy And Physiology
Human And Cultural Diversity
Human Resource Management
Ias
Indian Economy
Indian Economy
Indian General Awareness
Indian Geography
Indian Geography
Indian History
Indian History
Indian Polity
Instrumentation Transducers
International Relations
Java Program
Javascript
Judiciary And Law
Life Sciences
Management
Marketing And Marketing Management
Mass Transfer
Mechanical Engineering
Mechanics Of Materials
Medical Subjects
Microbiology
Networking
Php
Placement Tests
Professional Communication
Quantitative Aptitude
Reasoning Aptitude
Renewable Energy
Science
Sociology
Sql
Surveying
Total Quality Management
Uidai Aadhaar Supervisor Certification
Virology
Notificatin
Exam
Blog
Contact Us
Linq(Computer Science ) Questions and Answers
Home
Topic
Computer Science
Linq
Question 1.
Choose the namespace in which Expression trees are encapsulated:
System.Linq
System.Linq.Expressions
System.Text
System.Collections.Generic
Explanation:-
Answer: Option B. ->
System.Linq.Expressions
Question 2.
Select the namespace which should be included while making use of LINQ operations:
System.Text
System.Collections.Generic
System.Linq
none of the above
Explanation:-
Answer: Option C. ->
System.Linq
Question 3.
What can LINQ be used to access?
Databases and Data Sources
Only Collections
Only Databases
Value Types
Explanation:-
Answer: Option A. ->
Databases and Data Sources
Question 4.
Can we use linq to query against a DataTable?
Yes
No
Either Yes or No
None of the above
Explanation:-
Answer: Option B. ->
No
Question 5.
Choose the namespace in which the interface IEnumerable is declared?
System.Collections
System.Collections.Generic
Both a & b
none of the above
Explanation:-
Answer: Option B. ->
System.Collections.Generic
Question 6.
Choose the wrong statement about the LINQ?
The main concept behind the linq is query
linq makes use of foreach loop to execute the query
It is not required that linq should make use of IEnumerable interface
none of the above
Explanation:-
Answer: Option C. ->
It is not required that linq should make use of IEnumerable interface
Question 7.
Assume 2 columns named as Product and Category how can be both sorted out based on first by category and then by product name?
var sortedProds = _db.Products.Orderby(c => c.Category)
var sortedProds = _db.Products.Orderby(c => c.Category) + ThenBy(n => n.Name)
var sortedProds = _db.Products.Orderby(c => c.Category) . ThenBy(n => n.Name)
none of the above
Explanation:-
Answer: Option C. ->
var sortedProds = _db.Products.Orderby(c => c.Category) . ThenBy(n => n.Name)
Question 8.
Which of the following namespace contains the LINQ to XML?
System.Xml.Linq
System.Linq;
System.Xml;
None of these
Explanation:-
Answer: Option A. ->
System.Xml.Linq
Question 9.
What do you use to retrieve the data in a particular order?
GroupBy
OrderBy
ThenBy
Zomato
Explanation:-
Answer: Option B. ->
OrderBy
Question 10.
Whose presentation was the best?
Aweez
Aweez, of course
Bruh, don't even ask
All of above
Explanation:-
Answer: Option D. ->
All of above
1
2
Next →
One click Login
Login With Google
Old way of Login
Login With Email