Home / Programming MCQs / C# MCQs / Question

M

Mr. Dubey • 51.43K Points
Coach

Q. Correct Declaration of Values to variables ‘a’ and ‘b’?

(A) int a = 32, b = 40.6;
(B) int a = 42; b = 40;
(C) int a = 32; int b = 40;
(D) int a = b = 42;

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Related MCQs on C#

What is the extension of a C# language file?

Which of the following statements are correct about a .NET Assembly? 1. It is the smallest deployable unit. 2. Each assembly has only one entry point - Main(), WinMain() or DLLMain(). 3. An assembly can be a Shared assembly or a Private assembly. 4. An assembly can contain only code and data. 5. An assembly is always in the form of an EXE file

To avoid writing additional SQL statements to update a live database, you instantiate an object of which class?

Which is the correct method to convert given string in uppercase?

Which of the following statements characterizes the relationship between a Visual Basic.NET program and a database record?

Which of the following can be facilitated by the Inheritance mechanism? 1. Use the existing functionality of base class. 2. Override the existing functionality of base class. 3. Implement new functionality in the derived class. 4. Implement polymorphic behaviour. 5. Implement containership.

What will be the output of the following C# code?

Which of the following statements are correct? 1. Instance members of a class can be accessed only through an object of that class. 2. A class can contain only instance data and instance member function. 3. All objects created from a class will occupy equal number of bytes in memory. 4. A class can contain Friend functions. 5. A class is a blueprint or a template according to which objects are created.

What is String in C# meant for?

String mystring; Creates a(n)

Learn All C# MCQs