FAQ - C Programs Codes Questions asked in Various Interviews - REQMAT BLOGSPOT
FAQ - C Programs Codes Questions asked in Various Interviews

FAQ - C Programs Codes Questions asked in Various Interviews

REQMAT BLOGSPOT - Nareddula Rajeev Reddy NRR

The weightage of C-language and C-language programs in interviews can vary depending on the specific job role and company. However, C-language is still a widely used programming language, especially in embedded systems, operating systems, and device drivers, so it's likely that some knowledge of C-language will be required in interviews for these types of roles.

In general, it's safe to assume that C-language will have some weightage in interviews, particularly for entry-level or junior positions. The exact percentage of weightage can range from 25% to 50% depending on the company and job role.

Here are some frequently asked C-language questions and programs in interviews:

1. What is a pointer in C-language, and how is it used?
2. How do you declare and initialize variables in C-language?
3. What are the different data types in C-language, and how are they used?
4. How do you use conditional statements (if-else) in C-language?
5. How do you use loops (while, do-while, for) in C-language?
6. How do you use functions in C-language?
7. How do you use arrays in C-language?
8. How do you use structures (struct) in C-language?
9. How do you use pointers to pass arguments to functions in C-language?
10. How do you use pointers to implement dynamic memory allocation in C-language?
11. How do you implement string manipulation using arrays or pointers in C-language?
12. How do you implement file input/output (I/O) using file pointers in C-language?
13. How do you implement recursion in C-language?
14. How do you implement bitwise operators (AND, OR, XOR) in C-language?
15. How do you implement error handling using try-catch blocks or setjmp()/longjmp() functions in C-language?
16. How do you implement function overloading in C++ (which is not possible directly in C)?
17. How do you implement function templates (which is not possible directly in C)?
18. How do you implement object-oriented programming concepts like classes, objects, inheritance, and polymorphism using structs and unions (which is not possible directly in C)?
19. How do you optimize code performance using techniques like loop unrolling, function inlining, and register variables (which are not available directly as compiler optimization options)?
20. What are some best practices for writing clean and maintainable code using coding standards like K&R or MISRA (which are not enforced by the compiler)?

FAQ - C Programs Codes Questions asked in Various Interviews

1. Write a program to find factorial of the given number...
2. Write a program to check whether the given number is even or odd.
3. Write a program to swap two numbers using a temporary variable.
4. Write a program to swap two numbers without using a temporary variable.
5. Write a program to swap two numbers using bitwise operators.
6. Write a program to find the greatest of three numbers.
7. Write a program to find the greatest among ten numbers.
8. Write a program to check whether the given number is a prime.
9. Write a program to check whether the given number is a palindromic number.
10.Write a program to check whether the given string is a palindrome.
11.Write a program to generate the Fibonacci series.
12.Write a program to print "Hello World" without using semicolon anywhere in the code.
13.Write a program to print a semicolon without using a semicolon anywhere in the code.
14.Write a program to compare two strings without using strcmp() function.
15.Write a program to concatenate two strings without using strcat() function.
16.Write a program to delete a specified line from a text file.
17.Write a program to replace a specified line in a text file.
18.Write a program to find the number of lines in a text file..
19.Write a C program which asks the user for a number between 1 to 9 and shows the number. If the user inputs a number out of the specified range, the program should show an error and prompt the user for a valid input.
20.Write a program to display the multiplication table of a given number..
21.WAP to check a string is Palindrome or not. //Maventic question.
22.WAP to print DONE, without using any loop. // asked to my frnd in any company.
23.WAP to print DONE, without using any loop and any conditional clause or operators. // asked to me as a cross question of 22th question by the person i asked 22th ques.
24. WAP to find out the longest word in a string.
25.Prog of WORLD MAP. // this code was written by someone, i forgot his name, he won award for this code as short and best c code. JUST FOR FUN //
26.WAP to print the triangle of letters in increasing order of lines..
27.WAP to print 'xay' in place of every 'a' in a string.//DOC Update on
28.Count the Total Number of 7 coming between 1 to 100.
29. Code for duplicate's removal, by AmitAru.. // Similar question was asked in Maventic 2nd round to me,,
30. WAP to find out if a given number is a power series of 2 or not, without any loop and without using % modulo operator..// asked by someone on BJS..

Share with your family and/or friends