Interview questions

C interview questions – page 49

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

  1. What is Fault Contract in WCF

  2. What is virtual function?

  3. Write program to print Hello World and print each characteraddress in that string and print how many times eachcharacter is in that string? Ex: H: 0 & 1 e:1 & 1 l :2,3,8 & 3 o:4,6 & 2 w:5 & 1 r: 7 & 1 d 9 & 1

  4. What does the keyword virtual mean in the method definition?

  5. I have a flat file and the file s are like below****%%^^@@@G**@#A@#$N*&^E%^S@#h@@@##$$IN THIS FORMATEMeans un limited special charecter between and sides of the string data..output should be(GANESH).HOW YOU HANDEL THIS TYPE OF RECORDS?

  6. What's the difference between // comments, /* */ commentsand /// comments?

  7. What's the C# equivalent of C++ catch (?), which was acatch-all statement for any possible exception?

  8. WHAT IS THE DIFFERENCE BETWEEN C++ AND VC++

  9. Explain the concept of polymorphism with examples?

  10. How To Maintain Transaction In C#?

  11. A=10B=5C=A+BPrint CThe above will be given in a multiline textbox. You need toparse the above input, store values for A,B&c. And you haveto display the value of C.

  12. What is Anonymous Method.? and What is shadowing?

  13. An object,class is value type or refarance type. ?

  14. What are the versions of garbage collection?

  15. What is garbage collection?

  16. What is The difference between ' and "

  17. Program to print all possible substrings.ex: String S St Str Stri Strin String t tr tri trin tring r

  18. What is difference between new and malloc?

  19. Describe what an Interface is and how it's different from aClass.

  20. What is the difference between cookies and sessions?

  21. Program to print 1 1 2 1 2 3 1 2 3 4 like that

  22. What is the difference between Char a[ ]=?string? and char*a=? String?

  23. If int1 has the value 12, int has the value 18, and int3 hasthe value 21, what is the result:int1 < int2 && int2 < int 3

  24. What is Cold Boot and Warm Boot?

  25. What are the events in delegate?

  26. An array of size k contains integers between 1 and n. Compressthe original array by removing duplicates in it in O(k) time Whatif k << n?

  27. What is containership?

  28. What are templates? where we should use it?

  29. Destructor, Dispose, Finalize - How they relate to each other

  30. Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?

Companies that ask C questions