Please select a subject first
Advertisements
Advertisements
Write a program to perform matrix multiplication by passing input matrix to the function and printing resultant matrix.
Concept: Control Structures >> Looping
Write a program to display following pattern:
1
232
34543
4567654
567898765
Concept: Control Structures >> Looping
An electronic component vendor supplies three products: transistors, resistors and capacitors. The vendor gives a discount of 10% on order of transistor if the order is more than Rs. 1000. On order of more than Rs. 100 for resistors, a discount of 5% is given and discount of 10% is given on order for capacitors of value more than Rs. 500. Assume numeric code 1, 2 and 3 used for transistors, capacitors and resistors respectively. Write a program that reads the product code and order amount and prints out the net amount that the customer is required to pay after discount. (Note: Use switch-case)
Concept: Control Structures >> Nested Control Structure
Write a program to print following patterns for N lines.
5 4 3 2 *
5 4 3 * 1
5 4 * 2 1
5 * 3 2 1
* 4 3 2 1
Concept: Control Structures >> Nested Control Structure
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: Functions >> 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: Functions >> Recursion
Explain recursive function. Write a program to find the GCD of a number by using recursive function.
Concept: Functions >> 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: Functions >> 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
