100% found this document useful (1 vote)
231 views

C# Programming Solved MCQs (Set-6)

Uploaded by

Salifu Shahaban
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
231 views

C# Programming Solved MCQs (Set-6)

Uploaded by

Salifu Shahaban
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

C# Programming 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

133. A computer application that manages a database, in which different kinds of


data are stored in separate tables, is known as a
A. Normal database system.
B. Network database system.
C. Standalone database system.
D. Relational database management system.
Answer: D

134. Which of the following are examples of relational database management


systems?
A. Adobe Publisher and Autocad
B. Delphi and Turbo C++
C. Microsoft Excel and Microsoft Project
D. Microsoft Access and SQL 2000
Answer: D

Download more sets at McqMate.com


135. A unique field which distinguishs a record is known as a
A. Foreign key.
B. Primary key.
C. Tertiary key.
D. Secondary key.
Answer: D

136. In a database, a parent-child relationship is also known as a


A. Many-to-one relationship.
B. Many-to-many relationship.
C. One-to-many relationship.
D. One-to-one relationship.
Answer: C

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

139. ADO.NET was created for


A. Multiple users.
B. Single users.
C. Home network users.
D. Limited users.
Answer: A

Download more sets at McqMate.com


140. Which of the following statements characterizes the relationship between a
Visual Basic.NET program and a database record?
A. They are connected.
B. External databases cannot be accessed by Visual Basic.NET.
C. They are connected as long as the program is running.
D. They are not connected.
Answer: C

141. A copy of a database is called a


A. Duplicate database.
B. Dataset.
C. Table.
D. Database copy.
Answer: B

142. When is the dataset connected to the database?


A. Whenever the program makes changes to a field or record
B. They are always connected
C. They are always disconnected
D. Whenever the program is running
Answer: A

143. The connection to the database is established by


A. Using a local area network.
B. Installing a special software package.
C. Using managed providers.
D. Using a wide area network.
Answer: C

144. The ADO.NET disconnected dataset


A. Provides a flexible way of working with database records.
B. Makes working with databases very complex.
C. Requires a large amount of memory space.
D. Is required when single users want to access a database.
Answer: A

145. XML provides a(n)

Download more sets at McqMate.com


A. Difficult format for data storage.
B. Numeric based code for data storage.
C. Consistent format for data across applications, networks, and the Internet.
D. Limited format for data storage.
Answer: C

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

147. Choose the correct statements about the LINQ?


A. The main concept behind the linq is query
B. linq make use of for loop to execute the query
C. It is not required that linq should make use of IEnumerable interface
D. None of the mentioned
Answer: A

148. Choose the namespace in which the interface IEnumerable is declared?


A. System.Collections
B. System.Collections.Generic
C. Both a & b
D. None of the mentioned
Answer: A

149. Can we use linq to query against a DataTable?


A. Yes
B. No
C. Situational
D. None of the mentioned
Answer: A

150. Select the namespace which should be included while making use of LINQ
operations:
A. System.Text
B. System.Collections.Generic

Download more sets at McqMate.com


C. System.Linq
D. None of the mentioned
Answer: C

Download more sets at McqMate.com

You might also like