Point out the difference between strcmp() and strncmp()
Official theoretical question paper for Programming For Problem Solving (ES-CS201) conducted by Maulana Abul Kalam Azad University of Technology. All questions from Groups A, B, and C are reproduced below with marks weightings.
Point out the difference between strcmp() and strncmp()
What do you mean by pointer arithmetic in C?
Write the main of the differences between Structure and Union?
Find the correct output: #include<stdio.h> main() { for(int i=0; i<=5;i++) { printf("%d",i); } }
What is the main difference between call by value and call by address in C?
Why is scope of variable necessary in function?
What will be the output of the above code? #include main() { int i=3; i=i++; printf("%d",i); }
Why do we use header files?
Write the output of the following Code: #include int main() { char x; x = 'a'; printf("%d\n",x); }
Define recursion.
Arrangement of playing cards is an example of which sorting technique?
Explain Ackerman function.
Differentiate between the switch and nested-if statement in C with proper example.
Write a C program to count the number of even and odd numbers from an 1-D array.
Write a program in C to find the area and circumference of a circle using function
Write a C program to find the length of an array using pointer arithmetic.
Write a C program to perform bit wise left shift operation on a number taken from the user. Write the output with an example.
Draw a flowchart to evaluate factorial of a number.
Write a C program to generate Fibonacci Series upto n-terms using loop.
Explain preprocessor directive with suitable example.
Define a recursive function to calculate factorial of a number and call this function to calculate $S = 1! + 2! + ... + n!$, where n is user input.
Write a C program to swap the content of two variables using Call by Value.
Write a C program to list all the prime numbers for a given range of numbers.
Write a C program to check the entered character is a consonant or vowel. If it is not an alphabet return 'wrong input'.
Describe string with example.
How strings are represented in memory?
Write a C program to check the entered string is a palindrome or not.
Create a recursive C function to find the GCD of two numbers.
Write a C program to sort names of students in a class.