Explore topic-wise MCQs in Technical Programming.

This section includes 120 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.

51.

A copy of a database is called a

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

Boxing converts a value type on the stack to an ______ on the heap.

A. Bool type
B. Instance type
C. Class type
D. Object type
Answer» E.
53.

In which of the following collections is the Input/Output index-based? 1. Stack 2. Queue 3. BitArray 4. ArrayList 5. HashTable

A. 1 and 2 only
B. 3 and 4 only
C. 5 only
D. 1, 2 and 5 only
Answer» C. 5 only
54.

Struct’s data members are ____________ by default.

A. Protected
B. Public
C. Private
D. Default
Answer» D. Default
55.

In C#, all binary operators are ______.

A. Center-associative
B. Right-associative
C. Left-associative
D. Top-associative
Answer» D. Top-associative
56.

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» E.
57.

Which of the following can be used to terminate a while loop and transfer control outside the loop? 1. exit while 2. continue 3. exit statement 4. break 5. goto

A. 1,3
B. 2,4
C. 3,5
D. 4,5
Answer» E.
58.

Which method have same name as that of its class?

A. delete
B. class
C. constructor
D. None of mentioned
Answer» D. None of mentioned
59.

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» B. E+xxx
60.

A structure in C# provides a unique way of packing together data of ______ types.

A. Different
B. Same
C. Invoking
D. Calling
Answer» B. Same
61.

Inheritance is ______ in nature.

A. Commutative
B. Associative
C. Transitive
D. Iterative
Answer» D. Iterative
62.

Which of the following statements are correct about the delegate declaration given below? delegate void del(int i); 1. On declaring the delegate a class called del will get created. 2. The signature of del need not be same as the signature of the method that we intend to call using it. 3. The del class will be derived from the MulticastDelegate class. 4. The method that can be called using del should not be a static method. 5. The del class will contain a one-argument constructor and an lnvoke() method.

A. 1, 2 and 3 only
B. 1, 3 and 5 only
C. 2 and 4 only
D. 4 only
Answer» C. 2 and 4 only
63.

A computer application that manages a database, in which different kinds of data arestored 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» E.
64.

Which of the following should be used to implement a 'Has a' relationship between twoentities?

A. Polymorphism
B. Templates
C. Containership
D. Encapsulation
Answer» D. Encapsulation
65.

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» E.
66.

To overload a method which of the following statement is false?

A. If the return type is different methods are overloaded
B. Name of the overloaded method should be same
C. Type of the parameter should be different
D. Order of the parameter should be different if types are same
Answer» B. Name of the overloaded method should be same
67.

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
Answer» E.
68.

Which of the following statements are correct about the C#.NET code snippet givenbelow? if (age > 18 && no < 11) a = 25; 1. The condition no < 11 will be evaluated only if age > 18 evaluates to True. 2. The statement a = 25 will get executed if any one condition is True. 3. The condition no < 11 will be evaluated only if age > 18 evaluates to False. 4. The statement a = 25 will get executed if both the conditions are True. 5. && is known as a short circuiting logical operator.

A. 1,3
B. 2,5
C. 1,4,5,
D. 3,4,5
Answer» D. 3,4,5
69.

Which feature enables to obtain information about use and capabilities of types at runtime?

A. Runtime type ID
B. Reflection
C. Attributes
D. None of the mentioned
Answer» C. Attributes
70.

The methods that have the same name, but different parameter lists and differentdefinitions is called______.

A. Method Overloading
B. Method Overriding
C. Method Overwriting
D. Method Overreading
Answer» B. Method Overriding
71.

Which of the following is the correct way to create an object of the class Sample? 1. Sample s = new Sample(); 2. Sample s; 3. Sample s; s = new Sample(); 4. s = new Sample();

A. 1,3
B. 2,4
C. 1,2,3
D. 4,5
Answer» B. 2,4
72.

Which of the following will be the correct output for the C#.NET code snippet givenbelow? String s1 = "ALL MEN ARE CREATED EQUAL"; String s2; s2 = s1.Substring(12, 3); Console.WriteLine(s2);

A. ARE
B. CRE
C. CR
D. REA
Answer» C. CR
73.

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» D. Using a wide area network.
74.

An _______ is a symbol that tells the computer to perform certain mathematical orlogical manipulations.

A. Operator
B. Expression
C. Condition
D. Logic
Answer» B. Expression
75.

_______ variables are visible only in the block they are declared.

A. System
B. Global
C. Local
D. Console
Answer» D. Console
76.

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» D. They are not connected.
77.

Which of the following statements are correct about arrays used in C#.NET? 1. Arrays can be rectangular or jagged. 2. Rectangular arrays have similar rows stored in adjacent memory locations. 3. Jagged arrays do not have an access to the methods of System.Array Class. 4. Rectangular arrays do not have an access to the methods of System.Array Class. 5. Jagged arrays have dissimilar rows stored in non-adjacent memory locations.

A. 1,2
B. 1,3,5
C. 3,4
D. 1,2,5
Answer» E.
78.

In XML, a document is a hierarchy of

A. attributes
B. elements
C. tags
D. All of the above
Answer» C. tags
79.

Which of the following constitutes the .NET Framework? 1. ASP.NET Applications 2. CLR 3. Framework Class Library 4. WinForm Applications 5. Windows Services

A. 1,2
B. 2,3
C. 3,4
D. 2,5
Answer» C. 3,4
80.

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» D. One-to-one relationship.
81.

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» E.
82.

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» B. Data Source
83.

What is a delegate?

A. A strongly typed function pointer.
B. A light weight thread or process that can call a single method.
C. A reference to an object in a different process.
D. An inter-process message channel.
Answer» B. A light weight thread or process that can call a single method.
84.

C# does not support _____ constructors.

A. parameterized
B. parameter-less
C. Class
D. Method
Answer» C. Class
85.

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» D. code that represents a record.
86.

The theory of _____ implies that user can control the access to a class, method, orvariable.

A. Data hiding
B. Encapsulation
C. Information Hiding
D. Polymorphism
Answer» C. Information Hiding
87.

The formal-parameter-list is always enclosed in _______.

A. Square
B. Semicolon
C. Parenthesis
D. Colon
Answer» D. Colon
88.

Which of the following statements are correct about JIT? 1. JIT compiler compiles instructions into machine code at run time. 2. The code compiler by the JIT compiler runs under CLR. 3. The instructions compiled by JIT compilers are written in native code. 4. The instructions compiled by JIT compilers are written in Intermediate Language (IL) code.

A. 1,2,3
B. 2,4
C. 3,4
D. 1,2
Answer» B. 2,4
89.

_________ are reserved, and cannot be used as identifiers.

A. Keywords
B. literal
C. variables
D. Identifiers
Answer» B. literal
90.

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
Answer» B. 3,4
91.

Which of the following statements are correct? 1. We can assign values of any type to variables of type object. 2. When a variable of a value type is converted to object, it is said to be unboxed. 3. When a variable of type object is converted to a value type, it is said to be boxed. 4. Boolean variable cannot have a value of null. 5. When a value type is boxed, an entirely new object must be allocated and constructed.

A. 2,5
B. 1,5
C. 3,4
D. 2,3
Answer» C. 3,4
92.

Each data provider class is grouped and accessible through its:

A. namespace
B. database
C. datagrid
D. provider
Answer» B. database
93.

An ____ is a group of contiguous or related data items that share a common name.

A. Operator
B. Integer
C. Exponential
D. Array
Answer» E.
94.

Which of the following are parts of the .NET Framework? 1. The Common Language Runtime (CLR) 2. The Framework Class Libraries (FCL) 3. Microsoft Published Web Services 4. Applications deployed on IIS 5. Mobile Applications

A. Only 1, 2, 3
B. Only 1, 2
C. Only 1, 2, 4
D. Only 4,5
Answer» C. Only 1, 2, 4
95.

A _______ is an identifier that denotes a storage location

A. Constant
B. Reference type
C. Variable
D. Object
Answer» D. Object
96.

_______ 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» B. System
97.

Button class derives from

A. Checkbox
B. RadioButton
C. ButtonBase
D. None of the above
Answer» D. None of the above
98.

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» B. It is single flat file.
99.

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» D. Limited format for data storage.
100.

Which of the following are valid .NET CLR JIT performance counters? 1. Total memory used for JIT compilation 2. Average memory used for JIT compilation 3. Number of methods that failed to compile with the standard JIT 4. Percentage of processor time spent performing JIT compilation 5. Percentage of memory currently dedicated for JIT compilation

A. 1,5
B. 3,4
C. 1,2
D. 4,5
Answer» C. 1,2