State any two library functions string.h along with its syntax, use an example.
Concept: Function
What is pointer? Explain how the pointer variable declared and initialized.
Concept: Pointer
Write a program to multiply two matrices after checking compatibility.
Concept: Array
What is file? What are different functions available to read data from file? Specify the different modes in which files can be opened along with syntax.
Concept: Character Set in C-Programming
Write a program to calculate summation of series
1/1! + 2/2! + 3/3! +….+ n/n!
Concept: Array
Draw the flowchart for finding the roots of quadratic equation. Write program for same.
Concept: Three Construct of Algorithm and Flowchart
Write a program to implement calculator with following operations using switch case
1. add two numbers
2. subtract two numbers
3. multiply two numbers
4. divide two numbers
Concept: Control Structures
Select the correct option from multiple choice question.
What will be the output of the following program?
Void main() {
Double x=28;
Int r;
r=x%5;
printf(“\n r=%d”,r);}
Concept: Character Set in C-Programming
Select the correct option from multiple choice question.
What will be the output of following program
Void main() {int x[]={10,20,30,40,50};
printf(“\n%d%d%d%d”,x[4], 3[x], x[2], 1[x], x[0]); }
Concept: Character Set in C-Programming
Select the correct option from multiple choice question.
Which of the following is used as a string termination character?
Concept: Character Set in C-Programming
Select the correct option from multiple choice question.
void main() {
char a[]= “Hello world”;
char *p;
p=a;
printf(“\n%d%d%d%d”,sizeof(a),sizeof(p),strlen(a),strlen(p) ); }
Concept: Pointer
State True or False with reason.
Size of pointer variable is equal to the datatype it points to.
Concept: Pointer
State True or False with reason.
The statement void p; is valid.
Concept: Pointer
Define Algorithm. Write Algorithm to check whether given number is Armstrong number or not also mention input and output specifications to algorithm.
Concept: Three Construct of Algorithm and Flowchart
Convert 0010 0100 0010 1101 from base 2 to decimal. Convert 134 from base 10 to hexadecimal. Write steps for conversion.
Concept: Turing Model
Explain various storage classes with example.
Concept: Three Construct of Algorithm and Flowchart
State True or False with reason.
An algorithm is a graphical representation of the logic of a program.
Concept: Three Construct of Algorithm and Flowchart
How to create array of structure variable and assign values to its members?
Concept: Array
Draw flowchart for “if…else” and “while” statement of C language.
Concept: Three Construct of Algorithm and Flowchart
What is the need of computer programming. What do you mean by structured programming? Develop an ALGORITHM and FLOWCHART to find reverse of a number.
Concept: Three Construct of Algorithm and Flowchart