Programming with .NET Introduction
Description: This test is useful for GATE and CS students. This test has many useful questions related to Dot Net framework concepts | |
Number of Questions: 15 | |
Created by: Aliensbrain Bot | |
Tags: Dot Net GATE CS Programming |
Which of the following is not applicable in INamingContainer interface?
What will be the output of the following code?
class Demo {
static void Main(string[] args) {
int a = 3;
Site(ref a);
Console.WriteLine(The value of variable is + a);
}
public static void Site(ref int i) {
++i;
}
}
Identify the output of the code:
class Site {
static void Main(string[] args) {
int a;
Site(out a);
Console.WriteLine("The value of variable is" + a);
}
public static void Site(out int i) {
i = 4;
}
}
What is the significance of Load method in ASP.NET controls?
Which of the following is not applicable for IPostBackEventHandler interface in web controls?
Identify the output of the code given below:
using System;
class Program {
static void Main(string[] args) {
long[] numbers = {10.5, 3.52, 4.3456, 100.43, 3.4 };
Console.Write(numbers[1]);
Console.ReadLine();
}
}
How does 'page rendering' work in ASP.NET page life cycle?
How does the 'page initialisation' stage' work in ASP.NET page life cycle?
Predict the correct output of the code given below:
using System;
class Program {
static void Main(string[] args) {
Byte[] numbers = {
10,
20,
30,
40
};
Console.Write(numbers[1]);
Console.ReadLine();
}
}
Which of the following is incorrect about the components in the .NET framework?
Identify the output of the code given below:
using System;
class Demo1 {
public void X() {
Console.WriteLine("2");
}
}
class Demo2: Demo1 {
public new void X() {
Console.WriteLine("4");
}
}
class Test {
static void Main(string[] args) {
Demo1 s = new Demo1();
s.X();
Demo1 a = new Demo2();
a.X();
}
}
What is the role of Windows CardSpace in .NET framework 3.5?
Which of the following is the incorrect statement about ASP.NET server controls?
Which of the following is incorrect about the CLR (Common Language Runtime) in .NET framework?
Identify the correct output of the code given below:
using System;
class welcome {
static void Main(string[] args) {
String s = "Welcome";;
Object s3 = s.Clone();
Console.WriteLine( "" + s3);
}
}