Question Bank of Advanced ‘C’ Prgramming(2022-23)
Question
Bank of Advanced ‘C’ Prgramming
Q.1 one mark question.
1.
Define structure.
2.
Which function is used to open a file?
3.
What is macro?
4.
What is the use of strcpy () function.
5.
What is command line argument?
6.
Write syntax to declare a pointer.
7.
What is the use of malloc () function?
8.
What is file opening mode?
9.
Which functions are used to read a string?
10.
What is array of pointers?
11.
What is file opening mode?
12.
Demonstrate “structure within structure” with
example
13.
What is the use of strcat () function.
14.
What is command line argument?
15.
What is string? Give example.
16.
Define NULL pointer?
Q.2 Answer following question
1.
What is the use of # define directive.
2.
Differentiate between static & dynamic
memory allocation.
3.
What is string? How is it declared? Write any
two string functions.
4.
What is union? Write difference of structure and
union.
5.
Explain the functions which are used for dynamic
memory allocation?
6.
What is purpose of fseek() & ftell()
7.
Write short note to accessing structure members
with example.
8.
Write a program in ‘C’ to accept details ‘n’
students print the details of student having maximum percentage. Use structure
to store the student data.
9.
Write a C program to maximum number of array
using pointers.
10.
Write a ‘C’ program to read alternate characters
from a file.
11.
Write a C program to interchange two numbers
using pointers.
12.
cWrite a ‘C’ program to accept a string
& convert in uppercase without using built - in function.
13.
Write a C program to copy content one file
to another file.
14.
Differentiate macros and functions.
15.
Write C program to enter a string from
command line and print it in reverse order.
16.
Differentiate macros and functions.
17.
Explain following functions with syntax and
example.
fgetc(), fputc(),fgets(), fputs(), fscanf (), fprintf ()
18 .Explain any three-string function in C?
19 What is the output of following C code? Justify.
# define Test (x) (x * x)
int main ( )
{
int a, b = 3;
a = Test (b + 3);
printf (“% d - % d”, a, b);
}
Comments
Post a Comment