Interview questions

C interview questions – page 26

2,130 questions. Tap “Show answer” to check yourself.

  1. In C# events are actually a special form of delegates

  2. How are the attributes specified in C#

  3. When should the volatile modifier be used?

  4. Which of these .NET languages has been specefically designed to be used with .NET?

  5. If "condition" printf("Hello");else printf("World")what should be the condition,so the output will be HelloWorld.

  6. C Program to print the following series:11 21 2 31 2 3 41 2 3 4 5

  7. All .NET code have to be CLS compliant

  8. What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

  9. The 'finally' keyword is supported in C#?

  10. How do you make CLR enforce overflow checking

  11. Are there some features of C# language not supported by .NET?

  12. An assembly can be stored across multiple files?

  13. Garbage Collector:

  14. Can a file other than a .h file be included with #include?

  15. To read user input from the console, the following statement is used

  16. How to find a given number is armstrong number or not in "c".?

  17. We declare an integer variable 'x' in C# as

  18. When should the register modifier be used? Does it really help?

  19. What is Boxing?

  20. What is CLS?

  21. The methods which can be called without instantiating an object first are called

  22. How can I make sure that my program is the only one accessing a file?

  23. The correct syntax for defining a delefate is:

  24. What are the standard predefined macros?

  25. How can you avoid including a header more than once?

  26. Which of the escape sequence is used for Backspace

  27. What use of structure and union?

  28. WAP find the largest of 4 no using macros

  29. Even if an exception hasn?t occurred, the ?finally? block will get executed

  30. What happens when a C# project has more than 1 Main methods

Companies that ask C questions