Prog in C QB - Final
Prog in C QB - Final
Question Bank
PART B
Q.N D.L *
Questions M CO* BT*
o (E/M/D)
8 U
(i ) Explain the different types of operators used in ‘C’ with
5 necessary program. CO1 M
Explain about the various looping statements available in 'C' with 16 CO1
6 U E
appropriate sample programs.
D.L
Q.No Questions CO BT
(E/M/D)
List out the any four functions that are performed on CO2
15 R E
character strings.
#include <stdio.h>
int main()
16 { CO2 AP M
char str[8]="Programming";
printf("%s",str);
return 0;
}
Write the output of the following Code:
main()
{
17 char x; x = ‘a’; AP M
printf(“%d \n”,x); CO2
}
main()
{
static char name[]=”Programming”
inti=0;
20 while(name[i]!=’\0’) CO2 AP M
{
printf(“%c”,name[i]);
i++;
}}
21 CO2 R E
Define Searching.
PART – B
Q.N D.L *
Questions M CO* BT*
o (E/M/D)
PART - A
D.L
Q.No Questions CO BT
(E/M/D)
5 What are the two ways to pass parameters to the function? CO3 R E
PART B
D.L *
Q.No Questions M CO* BT*
(E/M/D)
16 CO
3 R M
Explain in detail about function with its syntax and example. 3
16 CO M
5 AP
Write a C program to perform binary search using recursion. 3
16 CO E
7 R
Discuss about pointers and pointer operators with example. 3
16 CO
9 R E
Explain in detail about recursion with example program. 3
PART – A
D.L
Q.No Questions CO BT
(E/M/D)
PART B
Q.N D.L *
Questions M CO* BT*
o (E/M/D)
8 Explain in detail about insertion and deletion of node in linked list. 16 CO4 R E
PART A
D.L
Q.No Questions CO BT
(E/M/D)
How do you search data in a data file using random access CO4 R E
16
method?
PART B
Q.N D.L *
Questions M CO* BT*
o (E/M/D)
1 Explain the type of file processing with its syntax and example. 16 CO4 R M
Discuss the function used for accessing the file randomly? 16 CO4
3 U M
Explain with example.
8 Write a C program to Open, Read, write and closing of file with 16 CO4 AN M
its syntax.
9 Write a C program to write data to text file and to read it. 16 CO4 AP M