GeekInterview.com
Series: Subject: Topic:

C# Interview Questions

Showing Questions 1 - 10 of 10 Questions
Sort by: 
 | 

Program on 3d matrix using random function print the o/p in file.

Asked By: k.sampath kumar | Asked On: Jun 1st, 2012

Program on 3d matrix using random function print the o/p in file find the even,odd,prime numbers from above output file. please do needful help thank you

Use c# to turn on the 4th and 7th bits

Asked By: annadm | Asked On: Jun 14th, 2011

Use c# to turn on the 4th and 7th bits of a said byte myflag, in which right most bit is first bit.Answer[flags] enum bitflags : byte { one = (1

Write a class in c# which get an action in its construction

Asked By: annadm | Asked On: Jun 11th, 2011

Write a class in c# which get an action (parameter less delegate) in its construction and has a single public method ‘bool execute()’ which does following: 1. Execute the action only if no other thread is currently executing the action.2. If another thread is already executing, wait until thread finished...

Data grid

Asked By: srivastava.aparna | Asked On: Jun 17th, 2010

How dotnet works in the background when we fetch data from data base to the grid on the form?

How to invoke the run command in client system

Asked By: Arul | Asked On: Aug 27th, 2007

How do I port "synchronized" functions from visual j++ to c#?

Asked By: Interview Candidate | Asked On: Sep 13th, 2004

Original visual j++ code: public synchronized void run() {// function body}ported c# code: class c{public void run(){lock(this){// function body }}public static void main() {}}

From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?

Asked By: Interview Candidate | Asked On: Sep 13th, 2004

With regard to versioning, interfaces are less flexible than classes. With a class, you can ship version 1 and then, in version 2, decide to add another method. As long as the method is not abstract (i.E., as long as you provide a default implementation of the method), any existing derived classes continue...

What optimizations does the c# compiler perform when you use the /optimize+ compiler option?

Asked By: Interview Candidate | Asked On: Sep 13th, 2004

The following is a response from a developer on the c# compiler team: we get rid of unused locals (i.E., locals that are never read, even if assigned).We get rid of unreachable code.We get rid of try-catch w/ an empty try.We get rid of try-finally w/ an empty try (convert to normal code...).We get rid...

How can I create a process that is running a supplied native executable (e.G., cmd.Exe)?

Asked By: Interview Candidate | Asked On: Sep 13th, 2004

The following code should run the executable and wait for it to exit before continuing: using system;using system.Diagnostics;public class processtest {public static void main(string[] args) {process p = process.Start(args[0]);p.Waitforexit();console.Writeline(args[0] + " exited.");}} remember to add...

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.