Home / Engineering / .NET Programming MCQs / Page 3

.NET Programming MCQs | Page - 3

Dear candidates you will find MCQ questions of .NET Programming here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.

M

Madhu • 12.02K Points
Tutor II

Q. 21) Type of Conversion in which compiler is unable to convert the datatype implicitly is ?

(A) ushort to long
(B) int to uint
(C) ushort to long
(D) byte to decimal
View Answer Discuss Share

M

Madhu • 12.02K Points
Tutor II

Q. 22) Scope of variable is related to definition of variable as:
1. Region of code within which variable value is valid and hence can be accessed.
2. No, relation with region where variable is declared its value is valid in entire scope.

(A) a
(B) b
(C) a, b
(D) None of the mentioned
View Answer Discuss Share

M

Madhu • 12.02K Points
Tutor II

Q. 23) What will be output of the following conversion ?

Code:
static void Main(string[] args)
{
char a = 'A';
string b = "a";
Console.WriteLine(Convert.ToInt32(a));
Console.WriteLine(Convert.ToInt32(Convert.Tochar(b)));
Console.ReadLine();
}
(A) 1, 97
(B) 65, 97
(C) 65, 97
(D) 97, 1
View Answer Discuss Share

M

Madhu • 12.02K Points
Tutor II

Q. 24) Which datatype should be more preferred for storing a simple number like 35 to improve execution speed of a program?

(A) sbyte
(B) short
(C) int
(D) long
View Answer Discuss Share

M

Madhu • 12.02K Points
Tutor II

Q. 25) Minimum and Maximum range of values supported by ‘float’ data type are ?

(A) 1.5 * 10 ^-40 to 3.4 * 10 ^38
(B) 1.5 * 10 ^-45 to 3.4 * 10 ^30
(C) 1.5 * 10 ^-45 to 3.4 * 10 ^38
(D) 1.5 * 10 ^-45 to 3.4 * 10 ^37
View Answer Discuss Share

M

Madhu • 12.02K Points
Tutor II

Q. 26) Which does the solution explorer not display?

(A) Form Properties
(B) Reference Folder
(C) Form File
(D) Assemble File
View Answer Discuss Share

M

Madhu • 12.02K Points
Tutor II

Q. 27) The Button control can be activated:

(A) programmatically through the click event.
(B) by clicking the button with the mouse.
(C) with the form’s DefaultButton property.
(D) Both a and b.
View Answer Discuss Share

M

Madhu • 12.02K Points
Tutor II

Q. 28) Which sequence of char data types is listed from lowest to highest?

(A) , A, z, Z
(B) a, z, A, Z
(C) A, a, Z, z
(D) A, Z, a, z
View Answer Discuss Share

M

Madhu • 12.02K Points
Tutor II

Q. 29) The Boolean data type:

(A) is unsigned.
(B) has two states.
(C) is displayed by the program as yes or no.
(D) Both a and b.
View Answer Discuss Share

M

Madhu • 12.02K Points
Tutor II

Q. 30) VB.Net identifiers:

(A) are case sensitive.
(B) can begin with an underscore.
(C) can begin with a number.
(D) Both a and b.
View Answer Discuss Share