Top 150+ Solved C# Programming MCQ Questions Answer
Q. The controls available in the tool box of the ______ are used to create the user interface of a web based application.
a. Microsoft visual studio IDE
b. Application window
c. Web forms
d. None of the above
Q. Web Forms consists of a _______ and a _________ .
a. Template, Component
b. CLR, CTS
c. HTML Forms, Web services
d. Windows, desktop
Q. The ______ parentheses that follow _____ indicate that no information is passed to Main().
a. Empty, class
b. Empty, submain
c. Empty, Main
d. Empty, Namespace
Q. The scope of a variable depends on the ____________ and _________.
a. Main method, place of its declaration
b. Type of the variable, console
c. compiler, main
d. Type of the variable, place of its declaration
Q. Which of the following statements is correct about the C#.NET code snippet given below?class Student s1, s2; // Here 'Student' is a user-defined class. s1 = new Student(); s2 = new Student();
a. Contents of s1 and s2 will be exactly same.
b. The two objects will get created on the stack.
c. Contents of the two objects created will be exactly same.
d. The two objects will always be created in adjacent memory locations.
Q. Which of the following can be facilitated by the Inheritance mechanism? 1 Use the existing functionality of base class. 2 Overrride the existing functionality of base class. 3 Implement new functionality in the derived class. 4 Implement polymorphic behaviour. 5 Implement containership.
a. 1, 2, 3
b. 3, 4
c. 2, 4, 5
d. 3, 5
Q. Which of the following should be used to implement a 'Has a' relationship between twoentities?
a. Polymorphism
b. Templates
c. Containership
d. Encapsulation
Q. Which of the following should be used to implement a 'Like a' or a 'Kind of' relationshipbetween two entities?
a. Polymorphism
b. Containership
c. Templates
d. Inheritance
Q. 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
Q. The following namespaces (System.Data.OleDB, System.Data.SqlClient, System.Data.Odbc, System.Data.OracleClient) include classes for different:
a. Data providers
b. File streams
c. ADO.NET applications
d. Databases
Q. 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.
Q. 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).
Q. 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.
Q. 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 recor
Q. 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.