C# Programming Solved MCQs (Set-6)
C# Programming Solved MCQs (Set-6)
Chapter: Unit 4
126. To avoid writing additional SQL statements to update a live database, you
instantiate an object of which class?
A. DataAdapter
B. DataReader
C. DataSet
D. CommandBuilder
Answer: A
m
127. The following namespaces (System.Data.OleDB, System.Data.SqlClient,
o
c
System.Data.Odbc, System.Data.OracleClient) include classes for different:
.
A. Data providers
te
B. File streams
a
C. ADO.NET applications
q M
D. Databases
c
Answer: A
M
128. Which of the following is a definition of a database?
A. It is a collection of related information organized on a computer.
B. It is single flat file.
C. It is a file that can only be set up on a single PC.
D. It is a group of files that can be set up only on a network.
Answer: A
129. A computer application for managing databases and pulling together data to
generate reports and make decisions is known as a(n)
A. Database System (DS).
B. File Manager (FM).
C. Management System (MS).
D. Database Management System (DBMS).
Answer: D
130. Which of the following characterizes the relational model for databases?
A. It organizes data into a hierarchal format.
B. It splits data into separate row and column areas called tables.
C. It organizes data into one large table.
D. It organizes data into a network format.
Answer: B
131. A field is a
A. group of records.
B. index that locates information in a table.
C. common characteristic in a table of information.
D. code that represents a record.
Answer: C
132. Forms and reports, used for entering and editing records, and for generating
useful information in reports are
A. additional database objects.
B. only useful for complex databases.
C. difficult to generate.
D. stored separately from databases.
Answer: D
137. The field in the child table that links information to the parent table is known
as the
A. Foreign key.
B. Primary key.
C. Tertiary key.
D. Secondary key.
Answer: A
138. ADO.NET is the data access component of Microsoft’s .NET framework that
enables you to
A. connect your Visual Basic.NET applications to your company’s local area network.
B. connect your Visual Basic.NET applications to databases.
C. connect your PC to the Internet.
D. connect your local area network to the Internet.
Answer: B
146. Why does Visual Studio.NET use XML as a data storage technology?
A. XML works best for the single PC user.
B. XML restricts the number of applications that can interface with Visual Basic.NET.
C. XML is optimized for sharing data across the Internet.
D. XML is easier to understand than Visual Basic.NET.
Answer: C
150. Select the namespace which should be included while making use of LINQ
operations:
A. System.Text
B. System.Collections.Generic