Exam Details
Subject | advance programming in c | |
Paper | ||
Exam / Course | b.c.a | |
Department | ||
Organization | solapur university | |
Position | ||
Exam Date | 12, April, 2017 | |
City, State | maharashtra, solapur |
Question Paper
B.C.A. (Semester II) (CBCS) Examination, 2017
ADVANCED PROGRAMMING IN
Day Date: Wednesday, 12-04-2017 Max. Marks: 70
Time: 10.30 AM to 01.00 PM
N.B. All questions are compulsory.
Figures to the right indicate full marks.
Q.1 Choose the correct alternatives: 14
Which of the following is not a compiler control directive?
#if #ifdef #ifndef #ifelse
Address stored in pointer variable is of type.
Character Float Integer Array
What is the size of generic pointer in
0 1 2 Null
Preprocessor directives must terminated by semicolon.
True False
Which of the following function sets first n characters of a string to
a given character?
strinit() strnset() strset() strcset()
We can use increment and decrement operations on pointers.
True False
A macro must always be written in capital letters.
True False
Which of the following function is used to find the first occurrence
of a given string in another string?
strchr() strrchr() strnset() strstr()
If the two strings are identical, then strcmp() function returns
1 0 None of these
10) How will you free the allocated memory?
remove(var-name); free(var-name);
delete(var-name); dalloc(var-name);
Page 1 of 2
SLR-US 6
11) Size of a union is determined by size of the
First member in the union
Last member in the union
Biggest member in the union
Sum of the sizes of all members
12) An array cannot be used as a member of the structure.
True False
13) operator is used to access the member of the structure.
. (underscore)
(hash) (semicolon)
14) Which of the following is not a file handling function?
fopen() feof()
fwrite() fgets()
Q.2 Answer any seven of the following. 14
Define file inclusion directives. Give its example.
Define pointer? How to initialize pointer.
Define string. Write a syntax for declaration of string.
List any two string functions with its use.
Define nesting of macros. Give its example.
What are the uses of structure?
How is a structure declared and initialized?
Define self-referential structure. Give its example.
What are the types of file?
Q.3 Attempt any two of the following. 10
Write the difference between structure and union.
Explain pointer arithmetic with example.
Explain the use of gets() and puts() function with example.
Write a note on macro substitution directives. 04
Q.4 Answer any two from the following: 14
What is pointer to array? Write a program to display sum of array
elements using pointer to array.
Write a program to accept a string and check whether it is
palindrome or not.
Explain array of structure with suitable example.
Q.5 Answer any two from the following: 14
Write a program to call a function call by reference.
What is dynamic memory allocation? Explain with example.
Explain different operations on files.
ADVANCED PROGRAMMING IN
Day Date: Wednesday, 12-04-2017 Max. Marks: 70
Time: 10.30 AM to 01.00 PM
N.B. All questions are compulsory.
Figures to the right indicate full marks.
Q.1 Choose the correct alternatives: 14
Which of the following is not a compiler control directive?
#if #ifdef #ifndef #ifelse
Address stored in pointer variable is of type.
Character Float Integer Array
What is the size of generic pointer in
0 1 2 Null
Preprocessor directives must terminated by semicolon.
True False
Which of the following function sets first n characters of a string to
a given character?
strinit() strnset() strset() strcset()
We can use increment and decrement operations on pointers.
True False
A macro must always be written in capital letters.
True False
Which of the following function is used to find the first occurrence
of a given string in another string?
strchr() strrchr() strnset() strstr()
If the two strings are identical, then strcmp() function returns
1 0 None of these
10) How will you free the allocated memory?
remove(var-name); free(var-name);
delete(var-name); dalloc(var-name);
Page 1 of 2
SLR-US 6
11) Size of a union is determined by size of the
First member in the union
Last member in the union
Biggest member in the union
Sum of the sizes of all members
12) An array cannot be used as a member of the structure.
True False
13) operator is used to access the member of the structure.
. (underscore)
(hash) (semicolon)
14) Which of the following is not a file handling function?
fopen() feof()
fwrite() fgets()
Q.2 Answer any seven of the following. 14
Define file inclusion directives. Give its example.
Define pointer? How to initialize pointer.
Define string. Write a syntax for declaration of string.
List any two string functions with its use.
Define nesting of macros. Give its example.
What are the uses of structure?
How is a structure declared and initialized?
Define self-referential structure. Give its example.
What are the types of file?
Q.3 Attempt any two of the following. 10
Write the difference between structure and union.
Explain pointer arithmetic with example.
Explain the use of gets() and puts() function with example.
Write a note on macro substitution directives. 04
Q.4 Answer any two from the following: 14
What is pointer to array? Write a program to display sum of array
elements using pointer to array.
Write a program to accept a string and check whether it is
palindrome or not.
Explain array of structure with suitable example.
Q.5 Answer any two from the following: 14
Write a program to call a function call by reference.
What is dynamic memory allocation? Explain with example.
Explain different operations on files.
Other Question Papers
Subjects
- advance programming in c
- advanced java – i
- advanced java – ii
- advanced programming in ‘c’
- advanced web technology
- basics of ‘c’ programming
- business communication
- business statistics
- communication skills
- computer graphics
- computer oriented statistics
- core java
- cyber laws and security control
- data structure using ‘c’
- data structures using ‘c’
- data warehouse and data mining
- database management system
- dbms with oracle
- development of human skills
- digital electronics
- discrete mathematics
- e-commerce
- e-governance
- financial accounting with tally
- financial management
- fundamentals of computer
- fundamentals of financial accounting
- introduction to data mining & warehousing
- introduction to information technology
- linux and shell programming
- management information system
- networking & data communication
- networking and data communication
- object oriented programming with c++
- oop with c++
- operating system
- operations research
- operting system
- procedural programming through ‘c’
- python
- rdbms with oracle
- software engineering
- software project management
- software testing
- theory of computation
- visual programming
- web technology
- web technology – ii
- web technology – iii