Please select a subject first
Advertisements
Advertisements
WAP to print all possible combination of 1,2,3 using nested loops.
Concept: Control Structures >> Looping
Write a program for finding sum of series 1+2+3+4+…….upto n terms.
Concept: Control Structures >> Looping
Write a programs to print following patterns for N lines.
5
5 4
5 4 3
5 4 3 2
5 4 3 2 1
Concept: Control Structures >> Nested Control Structure
Explain continue and break statements with the help of suitable examples.
Concept: Control Structures >> Looping
What is recursion? Write a program to find xy using recursion.
Concept: concept of Function >> Recursion
State any two library functions string.h along with its syntax, use an example.
Concept: Function
What is the usage of storage classes? Explain extern storage classes with suitable example.
Concept: Storage Classes
What are advantages and disadvantages of recursion? Comment on conditions to be considered while writing a recursive function. Write a program to print Fibonacci series up to N terms using a recursive function.
Concept: concept of Function >> Recursion
Explain recursive function. Write a program to find the GCD of a number by using recursive function.
Concept: concept of Function >> Recursion
Explain gets() and puts() functions of C language. Comment on their parameters and return values.
Concept: Function
What is recursion? WAP using recursion to find the sum of array elements of size n.
Concept: concept of Function >> Recursion
what is significance of storage classes? Explain it with relevant examples.
Concept: Storage Classes
Write a program to multiply two matrices after checking compatibility.
Concept: Array
Write a program to calculate summation of series
1/1! + 2/2! + 3/3! +….+ n/n!
Concept: Array
Define union. Compare Structure and Union.
Concept: Union
State True or False with reason.
scanf() function is used to input string having multiple words.
Concept: String
State True or False with reason.
In a union, space is allocated to every member individually.
Concept: Union
State True or False with reason.
There is no difference between ‘\0’ and ‘0’.
Concept: String
How to create array of structure variable and assign values to its members?
Concept: Array
Differentiate between struct and union. When is union preferred over struct? Give on example of each.
Concept: Structure
