McqMate
These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Computer Science Engineering (CSE) , Information Technology Engineering (IT) , Master of Computer Applications (MCA) , Programming Languages .
Chapters
| 101. |
The reason that C# does not support multiple inheritances is because of ______. |
| A. | Method collision |
| B. | Name collision |
| C. | Function collision |
| D. | Interface collision |
| Answer» B. Name collision | |
| 102. |
_______ is a set of devices through which a user communicates with a system using interactive set of commands. |
| A. | Console |
| B. | System |
| C. | Keyboard |
| D. | Monitor |
| Answer» A. Console | |
| 103. |
Exponential formatting character (‘E’ or ‘e’) converts a given value to string in the form of _______. |
| A. | m.dddd |
| B. | E+xxx |
| C. | m.dddd |
| D. | E+xxx |
| Answer» A. m.dddd | |
| 104. |
The ______ are the Graphical User Interface (GUI) components created for web based interactions.. |
| A. | Web forms |
| B. | Window Forms |
| C. | Application Forms |
| D. | None of the above |
| Answer» B. Window Forms | |
| 105. |
In Microsoft Visual Studio, ______ technology and a programming language such as C# is used to create a Web based application. |
| A. | JAVA |
| B. | J# |
| C. | VB.NET |
| D. | ASP.NET |
| Answer» D. ASP.NET | |
| 106. |
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 |
| Answer» A. Microsoft visual studio IDE | |
| 107. |
Web Forms consists of a _______ and a _________ . |
| A. | Template, Component |
| B. | CLR, CTS |
| C. | HTML Forms, Web services |
| D. | Windows, desktop |
| Answer» A. Template, Component | |
| 108. |
The ______ parentheses that follow _____ indicate that no information is passed to Main(). |
| A. | Empty, class |
| B. | Empty, submain |
| C. | Empty, Main |
| D. | Empty, Namespace |
| Answer» C. Empty, Main | |
| 109. |
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 |
| Answer» B. Type of the variable, console | |
| 110. |
Which of the following statements is correct about the C#.NET code snippet given below?
|
| 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. |
| Answer» C. Contents of the two objects created will be exactly same. | |
| 111. |
Which of the following can be facilitated by the Inheritance mechanism?
|
| A. | 1, 2, 3 |
| B. | 3, 4 |
| C. | 2, 4, 5 |
| D. | 3, 5 |
| Answer» A. 1, 2, 3 | |
| 112. |
Which of the following should be used to implement a 'Has a' relationship between two entities? |
| A. | Polymorphism |
| B. | Templates |
| C. | Containership |
| D. | Encapsulation |
| Answer» C. Containership | |
| 113. |
Which of the following should be used to implement a 'Like a' or a 'Kind of' relationship between two entities? |
| A. | Polymorphism |
| B. | Containership |
| C. | Templates |
| D. | Inheritance |
| Answer» D. Inheritance | |
| 114. |
How can you prevent inheritance from a class in C#.NET ? |
| A. | Declare the class as shadows. |
| B. | Declare the class as overloads. |
| C. | Declare the class as seal |
| Answer» C. Declare the class as seal | |
| 115. |
A class implements two interfaces each containing three methods. The class contains no instance data. Which of the following correctly indicate the size of the object created from this class? |
| A. | 12 bytes |
| B. | 24 bytes |
| C. | 0 byte |
| D. | 8 bytes |
| Answer» B. 24 bytes | |
| 116. |
Which of the following statements is correct about Interfaces used in C#.NET? |
| A. | All interfaces are derived from an Object class. |
| B. | Interfaces can be inherited. |
| C. | All interfaces are derived from an Object interface. |
| D. | Interfaces can contain only method declaration. |
| Answer» B. Interfaces can be inherited. | |
| 117. |
Which of the following statements is correct about an interface used in C#.NET? |
| A. | If a class implements an interface partially, then it should be an abstract class. |
| B. | Class cannot implement an interface partially. |
| C. | An interface can contain static methods. |
| D. | An interface can contain static data. |
| Answer» A. If a class implements an interface partially, then it should be an abstract class. | |
| 118. |
Which of the following statements is correct about an interface? |
| A. | One interface can be implemented in another interface. |
| B. | An interface can be implemented by multiple classes in the same program. |
| C. | A class that implements an interface can explicitly implement members of that interface. |
| D. | The functions declared in an interface have a body. |
| Answer» C. A class that implements an interface can explicitly implement members of that interface. | |
| 119. |
Databases store information in records, fields and: |
| A. | data providers |
| B. | grids |
| C. | columns |
| D. | tables |
| Answer» D. tables | |
| 120. |
Each data provider class is grouped and accessible through its: |
| A. | namespace |
| B. | database |
| C. | datagrid |
| D. | provider |
| Answer» A. namespace | |
| 121. |
In Visual Studio, the tool that enables you to connect to a database and automatically populate a dataset object using a TableAdapter object is the ___________wizard: |
| A. | Data Source Configuration |
| B. | Data Source |
| C. | Query Builder |
| D. | DataSet Designer |
| Answer» A. Data Source Configuration | |
| 122. |
In XML, a document is a hierarchy of |
| A. | attributes |
| B. | elements |
| C. | tags |
| D. | All of the above |
| Answer» B. elements | |
| 123. |
Which of the following namespace contains the LINQ to XML? |
| A. | System.Xml; |
| B. | System.Data; |
| C. | System.Xml.Linq; |
| D. | System.Linq; |
| Answer» C. System.Xml.Linq; | |
| 124. |
LINQ to SQL works with |
| A. | SQL Server |
| B. | SQL Server Compact 3.5 |
| C. | Both (a) and (b) |
| D. | None of the above |
| Answer» C. Both (a) and (b) | |
| 125. |
A connection string contains |
| A. | a using directive |
| B. | the name of the data source |
| C. | the version number of database management system |
| D. | the list of fields in the database |
| Answer» B. the name of the data source | |
| 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. DataAdapter | |
| 127. |
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 |
| Answer» A. Data providers | |
| 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. It is a collection of related information organized on a computer. | |
| 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. Database Management System (DBMS). | |
| 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. It splits data into separate row and column areas called tables. | |
| 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. common characteristic in a table of information. | |
| 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. stored separately from databases. | |
| 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. Relational database management system. | |
| 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. Microsoft Access and SQL 2000 | |
| 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. Secondary key. | |
| 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. One-to-many relationship. | |
| 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. Foreign key. | |
| 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. connect your Visual Basic.NET applications to databases. | |
| 139. |
ADO.NET was created for |
| A. | Multiple users. |
| B. | Single users. |
| C. | Home network users. |
| D. | Limited users. |
| Answer» A. Multiple users. | |
| 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. They are connected as long as the program is running. | |
| 141. |
A copy of a database is called a |
| A. | Duplicate database. |
| B. | Dataset. |
| C. | Table. |
| D. | Database copy. |
| Answer» B. Dataset. | |
| 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. Whenever the program makes changes to a field or record | |
| 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. Using managed providers. | |
| 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. Provides a flexible way of working with database records. | |
| 145. |
XML provides a(n) |
| 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. Consistent format for data across applications, networks, and the Internet. | |
| 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. XML is optimized for sharing data across the Internet. | |
| 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. The main concept behind the linq is query | |
| 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. System.Collections | |
| 149. |
Can we use linq to query against a DataTable? |
| A. | Yes |
| B. | No |
| C. | Situational |
| D. | None of the mentioned |
| Answer» A. Yes | |
| 150. |
Select the namespace which should be included while making use of LINQ operations: |
| A. | System.Text |
| B. | System.Collections.Generic |
| C. | System.Linq |
| D. | None of the mentioned |
| Answer» C. System.Linq | |
Done Studing? Take A Test.
Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.