Interview questions
C interview questions – page 52
2,094 questions. Tap “Show answer” to check yourself.
-
Write a program that takes a 3 digit number n and finds outwhetherthe number 2^n + 1 is prime, or if it is not prime find out itsfactors.
-
Can a structure inherit a class.
-
How do you initialize a class member, class x {const int i;};
-
What is shared inheritance
-
What's a delegate?
-
Can we inherit a private class in chsarp? how? explain(with code) ?
-
Can multiple catch blocks be executed?
-
Describe the accessibility modifier protected internal.
-
How to write test cases for fibonacii series
-
Can a structure used in a class if yes then how.
-
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
-
Determine the code below, tell me exactly how many times isthe operation sum++ performed ?for ( i = 0; i < 100; i++ ) for ( j = 100; j > 100 - i; j--) sum++;
-
Find the O/p of the following1)#includeint main(){ char c='1'; int j=atoi(c);}
-
Int x=5;printf("%d%d%d",x,x<<2,x>>2);
-
How to write aprogram by using array on queue
-
Difference between over loading and over ridding?
-
Class Program { void add() { int x=10, y=20; fun(); Console.WriteLine("{0}", sum); } void fun() { int sum; sum = x + y; } static void Main(string[] args) { Program f =new Program(); f.add(); } }Debug above program...
-
Main(){ char c; int i = 456; clrscr(); c = i; printf("%d", c);}a. 456b. -456c. random numberd. none of the above
-
Find string palindrome 10marks
-
What are strin concatation methods in c#?
-
Main(){static int ivar=5;printf("%d",ivar--);if(ivar)main();}
-
What is the difference b/w abstract and interface?
-
What is a hash function ?
-
Write a function for strtok()?
-
What are the storage class in C?
-
Write a program to reverse a linked list?
-
Why does not use getgh(); and <conio.h> in c language.
-
Write a program to find the largest and second largest integer from an array
-
Given an array of length N containing integers between 1 and N, determine if it contains any duplicates.
-
How to write optimum code to divide a 50 digit number with a25 digit number?