This download link is referred from the post: SGBAU BSc Last 10 Years 2010-2020 Question Papers || Sant Gadge Baba Amravati university
FirstRanker.com
A Firstranker's choice
B.C.A. (Part—I) Semester—II Examination
--- Content provided by FirstRanker.com ---
25T2 : ADVANCED C
Time : Three Hours] [Maximum Marks : 60
Note :— (1) All questions are compulsory.
(2) Use suitable diagram wherever necessary.
- (a) Explain with example how string can be handled using char array. 6
--- Content provided by FirstRanker.com ---
(b) Write the purpose, syntax and example of following functions :
(i) strrev()
(ii) strset( )
(iii) strcpy() 6
OR--- Content provided by FirstRanker.com ---
(a) Explain how string can be manipulated using arrays of pointers with suitable example. 6
(b) Write the purpose, syntax and example of following functions :
(i) strcmp() '
(ii) strcat( )
(iii) strupr( ) 6 - (a) Explain the concept of local and global variable with suitable example.
(b) Using function recursion, write a program in C to evaluate factorial of n. 6
OR
(a) Explain function prototype, function definition and function calling by using an example of function that adds three numbers. 6
(b) Explain with syntax and suitable example :--- Content provided by FirstRanker.com ---
(i) call by value
(ii) call by pointer. - (a) What do you mean by Union ? Explain with the help of suitable example.
(b) What is Pointer to Structure ? Explain with suitable example.
OR--- Content provided by FirstRanker.com ---
(a) Compare union with structure using suitable example. 6
(b) Explain how structures are defined using suitable example. How are structure members accessed ? 6 - (a) Explain fread and fwrite function with suitable example. 6
(b) Explain the following functions with example :
(i) fgetc()--- Content provided by FirstRanker.com ---
(ii) fputc()
(iii) fgets() 6
OR
(a) Write a program to enter following data in a file :
Computer Science--- Content provided by FirstRanker.com ---
Dennis Ritchie
1986,
59.76 6 - (a) Explain how memory can be allocated using malloc () in C with suitable example. 6
(b) Explain the following functions with suitable example :--- Content provided by FirstRanker.com ---
(i) feof
(ii) ferror. 6
OR
(a) Explain line function in C. Write a graphics program to draw a triangle on screen using line function three times. 6
(b) Write a program that uses the functions ftell and fseek. 6
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
This download link is referred from the post: SGBAU BSc Last 10 Years 2010-2020 Question Papers || Sant Gadge Baba Amravati university
--- Content provided by FirstRanker.com ---