Interview questions

C interview questions – page 30

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

  1. NET offers the follwing security features:

  2. The field variables in a class or a struct in C# are by default given a value of zero

  3. What is a pragma?

  4. A local C# variable declared in the for loop is in scope in

  5. There must be at least the following function in a C# program

  6. To change the value of a variable while debugging , the following window is used

  7. Each process in a 32 bit Windows environment has the following amount of virtual memory available:

  8. Can we use pointers in C#?

  9. If we develop a project in C, then how can we create an exe file of it?

  10. What is the benefit of using an enum rather than a #define constant?

  11. All the .NET languages have the following in common

  12. Which of the following is an explusive feature of C#?

  13. ASP.NET web pages can be programmed in C#?

  14. Events in C# are impltemented using:

  15. Which tool is used to browse the classes, structs, interfaces etc. in the BCL?

  16. We need to register a private assembly in the Windows registry in order to use it.

  17. If we need to compare X to a value 3 how do we do it in C#

  18. Can you add pointers together? Why would you?

  19. Can include files be nested?

  20. What is true about readonly variable in C# code?

  21. How reliable are floating-point comparisons?

  22. What is a macro, and how do you use it?

  23. What is the difference between const and static read-only?

  24. Which operator is used for TypeCasting

  25. How can I sort things that are too large to bring into memory?

  26. To access attributes, the following is used:

  27. You can explicitly call the garbage collector

  28. A class type in C# is a value type

  29. Which of the following is wrong with regards to Out keyword

  30. Can you define which header file to include at compile time?

Companies that ask C questions