.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!




Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.


Post New Question Subscribe to Interview Questions
 
Quick Links For Interview Questions Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  OOPs  JQuery  JavaScript/VBScript
BiztalkPatten/PracticesIISWCFWPFWWF
NetworkingAptitudeOthers  All    
 

.NET Framework Interview Questions and Answers

To make a variable constant , you need to define the variable with the _________ keyword ?

Author: Nikhil Kumar          Posted Date: 30/08/2010    Category: .NET Framework     Points: 10

1, static
2, private
3, public
4, final


Answer : 4

Consider the following two classes:

public class Example1
{
public static int num;
static
{
num=5;
}
}


public class Example2
{
public static void main(String[] args)
{
System.out.println(Example1.num);
}
}

Select the correct option regarding the preceding classes.?

Author: Nikhil Kumar          Posted Date: 30/08/2010    Category: .NET Framework     Points: 10

1, The Example2 class will execute without any output.
2, The Example2 class will execute with the following output:5

3, The Example2 class will not compile as it does not calls the constructor of the Example 1 class.
4, The Example2 class will not execute as it does not calls the constructor of the Example 1 class.

Answer : 2

The default layout manager of a panel is_________.?

Author: Nikhil Kumar          Posted Date: 30/08/2010    Category: .NET Framework     Points: 10

1, FlowLayout
2, BorderLayout
3, GridLayout
4, NullLayout


I think you may know : 1

Every AWT component has a ____________method that draws the specified component on a container. ?

Author: Nikhil Kumar          Posted Date: 30/08/2010    Category: .NET Framework     Points: 10

1, setVisible()
2, setSize()
3, paint()
4, draw()

Ansewer : 3

Which of the following method does the MouseMotionListener interface contains?

Author: Nikhil Kumar          Posted Date: 30/08/2010    Category: .NET Framework     Points: 10

1, mouseDragged(MouseEvent)
2, mouseExited(MouseEvent)
3, mouseEntered(MouseEvent)
4, mouseClicked(MouseEvent)

Answer : 1

Which of the following classes will you use to communicate between threads?

Author: Nikhil Kumar          Posted Date: 30/08/2010    Category: .NET Framework     Points: 10

1, FileInputStream and FileOutputStream
2, PipedInputStream and PipedOutputStream
3, BufferedInputStream and BufferedOutputStream
4, FilterInputStream and FilterOutputStream

Answer : 2

In a Java multithreading program, under what circumstances will you call the yield() method of a thread?

Author: Nikhil Kumar          Posted Date: 30/08/2010    Category: .NET Framework     Points: 10

1, To give other runnable threads a chance to execute.
2, To start a new thread.
3, To terminate the current thread.
4, To stop the current thread for a specific time.

Answer : 1

Select the correct statement that sets the priority of a thread among a group of threads to maximum.

Author: Nikhil Kumar          Posted Date: 30/08/2010    Category: .NET Framework     Points: 10

1, threadObj.getPriority(THREAD.MAX_PRIORITY);
2, threadObj.setPriority(MAX_PRIORITY);
3, threadObj.setPriority(THREAD.PRIORITY);
4, threadObj.setPriority(THREAD.MAX_PRIORITY);

Answer : 4

Consider the following code:

public class Example extends Thread
{
public void run()
{
System.out.println ("Hello");
}

public static void main (String args[])
{
new Example();
}
}

Select the correct option regarding the preceding code ?

Author: Nikhil Kumar          Posted Date: 30/08/2010    Category: .NET Framework     Points: 10

1, The code will not compile.
2, The code will compile but will not execute.
3, The code will compile, execute, and display Hello as the output.
4, The code will compile, execute, but will not display anything.

Answer : 4
« Previous12345678910….4041Next »



Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend