.NET Programming

V

Vinay Kumar • 8.55K Points
Tutor III

Q 41. Which of the following is NOT an Integer?

(A) Char
(B) Byte
(C) Integer
(D) Short
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share

V

Vinay Kumar • 8.55K Points
Tutor III

Q 42. Which of the following is an 8-byte Integer?

(A) Char
(B) Long
(C) Short
(D) Byte
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share

V

Vinay Kumar • 8.55K Points
Tutor III

Q 43. Select output of the given set of Code :
static void Main(string[] args)
{
String name = "Dr.Gupta";
Console.WriteLine("Good Morning" + name);
}

(A) Dr.Gupta
(B) Good Morning
(C) Good Morning Dr.Gupta
(D) Good Morning name
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share

V

Vinay Kumar • 8.55K Points
Tutor III

Q 44. 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
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share

V

Vinay Kumar • 8.55K Points
Tutor III

Q 45. 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
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share

V

Vinay Kumar • 8.55K Points
Tutor III

Q 46. What will be output of the following conversion ?
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
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share

V

Vinay Kumar • 8.55K Points
Tutor III

Q 47. 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
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share

V

Vinay Kumar • 8.55K Points
Tutor III

Q 48. 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
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share

V

Vinay Kumar • 8.55K Points
Tutor III

Q 49. Which is the String method used to compare two strings with each other ?

(A) Compare To()
(B) Compare()
(C) Copy()
(D) ConCat()
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share

V

Vinay Kumar • 8.55K Points
Tutor III

Q 50. A variable which is declared inside a method is called a________variable

(A) Serial
(B) Local
(C) Private
(D) Static
WhatsApp Facebook Telegram

Share in MCQ Buddy Groups

Share