Explore topic-wise MCQs in Computer Science Engineering (CSE).

This section includes 9 Mcqs, each offering curated multiple-choice questions to sharpen your Computer Science Engineering (CSE) knowledge and support exam preparation. Choose a topic below to get started.

1.

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
Answer» D. 97, 1
2.

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
Answer» D. Good Morning name
3.

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
Answer» B. b
4.

Which of the following are value types?1.Integer2.Array3.Single4.String5.Long

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

Which of the following will be the correct output for the C#.NET code snippet given below?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
6.

Which of the following can implement an interface?1.Data2.Class3.Enum4.Structure5.Namespace

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

When an ASP.NET file is placed on an IIS server and viewed through a browser, the resulting HTML page contains:

A. all ASP.NET code.
B. as much ASP.NET code as is in the ASP.NET file.
C. a mix of ASP.NET and HTML code.
D. all HTML code.
Answer» E.
8.

Which of the following is the correct output of the C#.NET code snippet given below?int[ , , ] a = new int[ 3, 2, 3 ];Console.WriteLine(a.Length);

A. 20
B. 4
C. 18
D. 10
Answer» D. 10
9.

Which of the following are NOT Relational operators in C#.NET?1.>=2.!=3.Not4.<=5.<>=

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