brad paisley alison krauss whiskey lullaby

by Admin 29. April 2008 17:06

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Zara Sa

by Admin 29. April 2008 17:03

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

C# Interview Questions

by Admin 28. April 2008 05:55

General Questions

  1. Does C# support multiple-inheritance?
    No.
     
  2. Who is a protected class-level variable available to?
    It is available to any sub-class (a class inheriting this class).
     
  3. Are private class-level variables inherited?
    Yes, but they are not accessible.  Although they are not visible or accessible via the class interface, they are inherited. 
     
  4. Describe the accessibility modifier “protected internal”.
    It is available to classes that are within the same assembly and derived from the specified base class. 
     
  5. What’s the top .NET class that everything is derived from?
    System.Object. 
     
  6. What does the term immutable mean?
    The data value may not be changed.  Note: The variable value may be changed, but the original immutable data value was discarded and a new data value was created in memory.
     
     
  7. What’s the difference between System.String and System.Text.StringBuilder classes?
    System.String is immutable.  System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed. 
     
  8. What’s the advantage of using System.Text.StringBuilder over System.String?
    StringBuilder is more efficient in cases where there is a large amount of string manipulation.  Strings are immutable, so each time a string is changed, a new instance in memory is created.
     
  9. Can you store multiple data types in System.Array?
    No. 
     
  10. What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?
    The Clone() method returns a new array (a shallow copy) object containing all the elements in the original array.  The CopyTo() method copies the elements into another existing array.  Both perform a shallow copy.  A shallow copy means the contents (each array element) contains references to the same object as the elements in the original array.  A deep copy (which neither of these methods performs) would create a new instance of each element's object, resulting in a different, yet identacle object.
     
  11. How can you sort the elements of the array in descending order?
    By calling Sort() and then Reverse() methods. 
     
  12. What’s the .NET collection class that allows an element to be accessed using a unique key?
    HashTable. 
     
  13. What class is underneath the SortedList class?
    A sorted HashTable. 
     
  14. Will the finally block get executed if an exception has not occurred?­
    Yes.
     
  15. What’s the C# syntax to catch any possible exception?
    A catch block that catches the exception of type System.Exception.  You can also omit the parameter data type in this case and just write catch {}. 
     
  16. Can multiple catch blocks be executed for a single try statement?
    No.  Once the proper catch block processed, control is transferred to the finally block (if there are any). 
     
  17. Explain the three services model commonly know as a three-tier application.
    Presentation (UI), Business (logic and underlying code) and Data (from storage or other sources). 
     

Class Questions

  1. What is the syntax to inherit from a class in C#?
    Place a colon and then the name of the base class.
    Example: class MyNewClass : MyBaseClass 
     
  2. Can you prevent your class from being inherited by another class?
    Yes.  The keyword “sealed” will prevent the class from being inherited. 
     
  3. Can you allow a class to be inherited, but prevent the method from being over-ridden?
    Yes.  Just leave the class public and make the method sealed. 
     
  4. What’s an abstract class?
    A class that cannot be instantiated.  An abstract class is a class that must be inherited and have the methods overridden.  An abstract class is essentially a blueprint for a class without any implementation. 
     
  5. When do you absolutely have to declare a class as abstract?
    1. When the class itself is inherited from an abstract class, but not all base abstract methods have been overridden.
    2. 
    When at least one of the methods in the class is abstract. 
     
  6. What is an interface class?
    Interfaces, like classes, define a set of properties, methods, and events. But unlike classes, interfaces do not provide implementation. They are implemented by classes, and defined as separate entities from classes. 
     
  7. Why can’t you specify the accessibility modifier for methods inside the interface?
    They all must be public, and are therefore public by default. 
     
  8. Can you inherit multiple interfaces?
    Yes.  .NET does support multiple interfaces. 
     
  9. What happens if you inherit multiple interfaces and they have conflicting method names?
    It’s up to you to implement the method inside your own class, so implementation is left entirely up to you. This might cause a problem on a higher-level scale if similarly named methods from different interfaces expect different data, but as far as compiler cares you’re okay.
    To Do: Investigate 
     
  10. What’s the difference between an interface and abstract class?
    In an interface class, all methods are abstract - there is no implementation.  In an abstract class some methods can be concrete.  In an interface class, no accessibility modifiers are allowed.  An abstract class may have accessibility modifiers. 
     
  11. What is the difference between a Struct and a Class?
    Structs are value-type variables and are thus saved on the stack, additional overhead but faster retrieval.  Another difference is that structs cannot inherit. 
     

Method and Property Questions

  1. What’s the implicit name of the parameter that gets passed into the set method/property of a class?
    Value.  The data type of the value parameter is defined by whatever data type the property is declared as. 
     
  2. What does the keyword “virtual” declare for a method or property?
    The method or property can be overridden. 
     
  3. How is method overriding different from method overloading?
    When overriding a method, you change the behavior of the method for the derived class.  Overloading a method simply involves having another method with the same name within the class. 
     
  4. Can you declare an override method to be static if the original method is not static?
    No.  The signature of the virtual method must remain the same.  (Note: Only the keyword virtual is changed to keyword override) 
     
  5. What are the different ways a method can be overloaded?
    Different parameter data types, different number of parameters, different order of parameters. 
     
  6. If a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?
    Yes, just place a colon, and then keyword base (parameter list to invoke the appropriate constructor) in the overloaded constructor definition inside the inherited class.
     

Events and Delegates

  1. What’s a delegate?
    A delegate object encapsulates a reference to a method. 
     
  2. What’s a multicast delegate?
    A delegate that has multiple handlers assigned to it.  Each assigned handler (method) is called.
     

XML Documentation Questions

  1. Is XML case-sensitive?
    Yes. 
     
  2. What’s the difference between // comments, /* */ comments and /// comments?
    Single-line comments, multi-line comments, and XML documentation comments. 
     
  3. How do you generate documentation from the C# file commented properly with a command-line compiler?
    Compile it with the /doc switch.
     

Debugging and Testing Questions

  1. What debugging tools come with the .NET SDK?
    1.   CorDBG – command-line debugger.  To use CorDbg, you must compile the original C# file using the /debug switch.
    2.   DbgCLR – graphic debugger.  Visual Studio .NET uses the DbgCLR. 
     
  2. What does assert() method do?
    In debug compilation, assert takes in a Boolean condition as a parameter, and shows the error dialog if the condition is false.  The program proceeds without any interruption if the condition is true. 
     
  3. What’s the difference between the Debug class and Trace class?
    Documentation looks the same.  Use Debug class for debug builds, use Trace class for both debug and release builds. 
     
  4. Why are there five tracing levels in System.Diagnostics.TraceSwitcher?
    The tracing dumps can be quite verbose.  For applications that are constantly running you run the risk of overloading the machine and the hard drive.  Five levels range from None to Verbose, allowing you to fine-tune the tracing activities. 
     
  5. Where is the output of TextWriterTraceListener redirected?
    To the Console or a text file depending on the parameter passed to the constructor. 
     
  6. How do you debug an ASP.NET Web application?
    Attach the aspnet_wp.exe process to the DbgClr debugger. 
     
  7. What are three test cases you should go through in unit testing?
    1.       Positive test cases (correct data, correct output).
    2.       Negative test cases (broken or missing data, proper handling).
    3.       Exception test cases (exceptions are thrown and caught properly). 
     
  8. Can you change the value of a variable while debugging a C# application?
    Yes.  If you are debugging via Visual Studio.NET, just go to Immediate window. 
     

ADO.NET and Database Questions

  1. What is the role of the DataReader class in ADO.NET connections?
    It returns a read-only, forward-only rowset from the data source.  A DataReader provides fast access when a forward-only sequential read is needed.
  2.  
     
  3. What are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?
    SQLServer.NET data provider is high-speed and robust, but requires SQL Server license purchased from Microsoft. OLE-DB.NET is universal for accessing other sources, like Oracle, DB2, Microsoft Access and Informix.  OLE-DB.NET is a .NET layer on top of the OLE layer, so it’s not as fastest and efficient as SqlServer.NET. 
     
  4. What is the wildcard character in SQL?
    Let’s say you want to query database with LIKE for all employees whose name starts with La. The wildcard character is %, the proper query with LIKE would involve ‘La%’. 
     
  5. Explain ACID rule of thumb for transactions.
    A transaction must be:
    1.       Atomic - it is one unit of work and does not dependent on previous and following transactions.
    2.       Consistent - data is either committed or roll back, no “in-between” case where something has been updated and something hasn’t.
    3.       Isolated - no transaction sees the intermediate results of the current transaction).
    4.       Durable - the values persist if the data had been committed even if the system crashes right after. 
     
  6. What connections does Microsoft SQL Server support?
    Windows Authentication (via Active Directory) and SQL Server authentication (via Microsoft SQL Server username and password). 
     
  7. Between Windows Authentication and SQL Server Authentication, which one is trusted and which one is untrusted?
    Windows Authentication is trusted because the username and password are checked with the Active Directory, the SQL Server authentication is untrusted, since SQL Server is the only verifier participating in the transaction. 
     
  8. What does the Initial Catalog parameter define in the connection string?
    The database name to connect to. 
     
     
  9. What does the Dispose method do with the connection object?
    Deletes it from the memory.
    To Do: answer better.  The current answer is not entirely correct. 
     
  10. What is a pre-requisite for connection pooling?
    Multiple processes must agree that they will share the same connection, where every parameter is the same, including the security settings.  The connection string must be identical.
     

Assembly Questions

  1. How is the DLL Hell problem solved in .NET?
    Assembly versioning allows the application to specify not only the library it needs to run (which was available under Win32), but also the version of the assembly. 
     
  2. What are the ways to deploy an assembly?
    An MSI installer, a CAB archive, and XCOPY command. 
     
  3. What is a satellite assembly?
    When you write a multilingual or multi-cultural application in .NET, and want to distribute the core application separately from the localized modules, the localized assemblies that modify the core application are called satellite assemblies. 
     
  4. What namespaces are necessary to create a localized application?
    System.Globalization and System.Resources.
     
  5. What is the smallest unit of execution in .NET?
    an Assembly.
     
  6. When should you call the garbage collector in .NET?
    As a good rule, you should not call the garbage collector.  However, you could call the garbage collector when you are done using a large object (or set of objects) to force the garbage collector to dispose of those very large objects from memory.  However, this is usually not a good practice.
     
  7. How do you convert a value-type to a reference-type?
    Use Boxing.
     
  8. What happens in memory when you Box and Unbox a value-type?
    Boxing converts a value-type to a reference-type, thus storing the object on the heap.  Unboxing converts a reference-type to a value-type, thus storing the value on the stack.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

general

A few nice brain teasers

by Admin 25. April 2008 18:43

A few nice brain teasers.

1. A murderer is condemned to death. He has to choose between three rooms. The first is full of raging fires, the second is full of assassins with loaded guns, and the third is full of lions that haven't eaten in 3 years. Which room is safest for him?

2. A woman shoots her husband. Then she holds him under water for over 5 minutes. Finally, she hangs him. But 5 minutes later they both go out together and enjoy a wo nderful dinner together. How can this be?

3. Can you name three consecutive days without using the words Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, or Sunday?

4. This is an unusual paragraph. I'm curious how quickly you can find out what is so unusual about it. It looks so plain you would think nothing was wrong with it. In fact, nothing is wrong with it! It is unusual though. Study it, and think about it, but you still may not find anything odd. But if you work at it a bit, you might find out.


ANSWERS:

1. The third. Lions that haven't eaten in three years are dead.

2. The woman is a photographer. She shot a picture of her husband, developed it, and hung it up to dry.

3. Sure you can: Yesterday, Today, and Tomorrow!

4. The letter "e" - the most common letter in the English language - is missing from the entire paragraph!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

BlogEngine.NET Theme Webcast

by Admin 8. April 2008 17:47

You can watch the webcast from this link. It is a full screen 1024x768 webcast using flash.

http://razorant.com/misc/BE1.1ThemeCreation.html

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Using the Vanishing Point Filter to Mock up a Business Card

by Admin 6. April 2008 14:11

i saw this tutorial on psdtuts.com today. be ready to see a similar looking BlogEngine theme soon. on my blog.

http://psdtuts.com/tutorials-effects/using-the-vanishing-point-filter-to-mock-up-a-business-card/

 

Smile

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Visual Studio 2005 Shortcuts

by Admin 4. April 2008 15:31

Its not necessary that you should know everything about Visual Studio IDE. but if you know few basics shortcuts within your IDE you can save much of your time. If you are a power user, you will certainly enjoy using keyboard shortcuts to perform various operations more quickly.most of you are already familiar with some of them:

  • F5 for Debug.Start,
  • F10 for Debug.StepOver
  • F4 for View.Properties

I have included some of my favorite ones below.

Basics:

F7 Toggles between design and code views.
F9 Toggles breakpoint.
F12 Go to definition of a variable, object, or function.
Ctrl+Shift+7

Ctrl+Shift+8

Quickly navigate forward and backwards in the go to definition stack.
Shift+F12 Find all references of a function or a variable.
Ctrl+M, Ctrl+M Expand and collapse code outlining in the editor.
Ctrl+K, Ctrl+C

Ctrl+K, Ctrl+U

Comment and uncomment line(s) of code, respectively.
Shift+Alt+Enter Toggles between full screen mode and normal mode.
Ctrl+I

Incremental Search.

Navigation:

  • Goto Line: Ctrl+G Brings up Go To Line allowing you to automatically jump to a line position
  • Toggle Bookmark: Ctrl+K, Ctrl+K Set a bookmark to allow you to easily jump back to that position later.
  • Next Bookmark/Previous Bookmark: Ctrl+K, Ctrl+N (Next); Ctrl+K, Ctrl+P (Previous) Moves between your set bookmarks.

Debugging/Running/Compiling:

  • Insert/Remove (Simple) Breakpoint: F9 Create a default breakpoint which always fires when debugging.
  • Insert (Complex) Breakpoint: Ctrl+B Brings up breakpoint dialogue allowing for conditional breakpoints, etc.
  • Start (with Debugging if in Debug build): F5 Run without Debugging: Ctrl+F5 If you are in a release build, both F5 and Ctrl+F5 behave the same.
  • Iterate Through Build Errors: F8 If your build fails, you can press F8 to move between the various errors in the task list.

Writing Code:

  • Comment and Uncomment Code: Ctrl+K,Ctrl+C (Comment), Ctrl+K, Ctrl+U (Uncomment) Works on current line or multiple selected lines.
  • Intellisense Autocomplete: Alt+RArrow or Ctrl+Space Start typing a keyword, then press Alt + Right Arrow or Ctrl + Space and Intellisense will complete the word (if what you’ve typed is identifiable) or bring up Intellisense with the nearest match. You can also do this before typing and Intellisense will come up.
  • Dynamic Help: F1 Get in center of a method, type, class, etc in editor, press F1. Help comes up on that topic if it exists.
  • View Code-Behind: F7 View the code-behind file from the .ASPX or .ASCX file
  • Switch between Design and HTML View: Ctrl + PgUp or Ctrl + PgDown Move between HTML and Design view on .ASPX and .ASCX files.
  • Switch between Tabs: Ctrl+Tab (Back), Ctrl+Shift+Tab (Forward) Useful for moving between open files in Visual Studio. Keeps track of the order in which you last visited the tabs and cycles through that.
  • Go To Definition: F12 Click, Select or have cursor on text you wish to go to the definition of.
  • Last cursor position: Ctrl + - (Back), Ctrl+Shift+- (Forward) Useful for moving between files you have been editing. Especially useful if you have done a Go To Definition or if you are stepping though code in the debugger.
  • Toggle Wordwrap:Ctrl + R, Ctrl + R While you should make it a practice to limit the width of your lines so they don’t require wrapping, sometime you do have lines that scroll off the Screen. This wraps them for you so you can see the entire text without scrolling.
  • CTRL+ALT+L: View Solution Explorer.
  • SHIFT+F12: Find all references of a function or variable.
  • F7: Toggle between Designer and Source views.
  • CTRL+D or CTRL+/: Find combo (see section on Find Combo below).
  • CTRL+M, O: Collapse to Definitions. This is usually the first thing I do when opening up a new class.
  • CTRL+K, CTRL+C: Comment block. CTRL+K, CTRL-U (uncomment selected block).
  • CTRL+-: Go back to the previous location in the navigation history.
  • ALT+B, B: Build Solution. Related shortcuts: ALT+B, U (build selected Project), ALT+B, R (rebuild Solution).
  • CTRL+ALT+Down Arrow: Show dropdown of currently open files. Type the first few letters of the file you want to select.
  • CTRL+K, CTRL+D: Format code.
  • CTRL+L: Delete entire line.
  • SHIFT+ALT+Enter: Toggle full screen mode. This is especially useful if you have a small monitor.
  • CTRL+K, X: Insert "surrounds with" code snippet.
  • CTRL+B, T: Toggle bookmark. Related: CTRL+B, N (next bookmark), CTRL+B, P (prev bookmark).

 

even i dont use all of them but we should.. Happy Coding  Wink

see also http://www.imiscommunity.com/visual_studio_2005_tips_and_tricks

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

general

Photoshop Tutorials

by Admin 4. April 2008 12:44

I was looking for some great text effects in adobe photoshop. after googling for some time i found these two good photoshop tutorial websites which every PS lover must see

http://www.photoshoplady.com

http://pshero.com

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

TOEFL IBT Tips and Tricks

by Admin 3. April 2008 17:21

May be you know about New IBT. The new Internet-based TOEFL (iBT) will include

  • a new Speaking Section
  • twice the number of essays
  • integrated skills testing
  • will be one hour longer.

well i wanted to share my experience with you people regarding the TOEFL exam. dont prepare too much for this exam. because its not the last minutes preparation that will do the trick but a regular practice. ok here are few tips for you guys.

  1. Register yourself for the test ASAP via www.ets.org 
  2. goto www.gigapedia.org and create your account (if you dont have already) and search official Toefl Guide and download it.
  3. study the guide for 3 to 4 days depending upon your reading speed and then solve and review all the practice tests given in the guide.
  4. again goto gigapedia and search for TOEFL IBT exam simulator. yes you will find it. the one i found contained 4 practice tests. 2 of them were timed.
  5. after completing the test you are ready to give the test.

one thing to make sure that as soon as you know the pattern of the test your done with the preparation. after preparing do some listening, reading, and offcourse writing practice. do watch english movies and try to translate each and every sentence in you mind. similarly read a good english book and after reading each page try writing the summary.

Tips for the test

  1. Read the passge quickly. no need to read and understand everything. try to skip to the questions ASAP for saving time. as in questions it will refer to the corresponding paragraph number. read it then
  2. dont let any question un touched.
  3. listen carefully and write the notes.
  4. dont worry if you first question was not good in the speaking section. do you best for coming questions. make short supporting sentences for avoiding pauses during ur speech.
  5. do not write everything you can. but whatever u have written review it and do the best decoration to ur passge using proper punctuation, grammer, best choice of words and very few idioms if applicable.

thats it. best of luck to others. Cool

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

070-630 MOSS 2007 Configuration

by Admin 3. April 2008 17:00
Today I appeared in my first Microsoft certification. Testing center was good. They checked me like dogs. uff. After placing my cell phone, wallet and few papers in a locker I went to the waiting room. There I saw a man wearing safari suite (yes like Indian detectives) he enquired me about the paper and timing. Then I filled a form and went to the testing hall. Finally a girl came and asked me few rubbish questions and checked my passport and NIC within 10 minutes I was in front of HP branded system. Test started and I done it in 40 min. I am now MCTS Configuring Microsoft Office Share Point Server 2007 

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

Powered by BlogEngine.NET 1.4.0.0
Theme by Mads Kristensen

S@jid

there is no secret ingredient - Kung fu Panda

Recent posts

Recent comments

Comment RSS

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in  anyway.

© Copyright 2008