Exam Details

Subject advance programming in c
Paper
Exam / Course b.c.a
Department
Organization solapur university
Position
Exam Date November, 2017
City, State maharashtra, solapur


Question Paper

B.C.A. (Semester II) (CBCS) Examination Oct/Nov-2017
ADVANCED PROGRAMMING IN
Day Date: Friday, 10-11-2017 Max. Marks: 70
Time: 10.30 AM to 01.00 PM
Instructions: All questions are compulsory.
Q.1 Select correct alternatives and rewrite statement. 14
The value contained in the pointer is another variable.
value location
none of a and b both
If both structure and union contains more than one same data members with
same data types then maximum memory.
structure union
both a and b none of these
All file handling function belongs to header file.
stdio.h conio.h
file.h process.h
strcmp(x,y) returns positive value if
x<y
x>y None of these
The members shares common memory location.
structure union
both a and b none of these
Identify the output of following code:
char
int


65 A
compile time error none of these
directive used if a macro is not defined.
#undef #ifdef
#endif #ifndef s
The function strcat to
s1 to s2 s2 to s1
s1 to s1 s2 to s2
The only integer that can be assigned to pointer variable is
0
1 2
10) function is used to allocate memory dynamically for array.
malloc() calloc()
realloc() free()
Page 2 of 2
SLR-SD-6
11) The selection operator requires the use of access members of
structure.
array object
pointer union
12) is used to combine two tokens within a macro definition to
form a single token.


13) moves file pointer in forward by bytes.
fseek(fp,m,0) fseek(fp,m,1)

14) is alternative for "if…else…if"
#ifdef #elif
#endif #ifif
Q.2 Attempt any seven of the followings: 14
Write use of #error directive.
Give the difference between calloc( and malloc(
Write syntax and use of rewind().
Give the difference between pass by value and pass by pointer.
Write use and syntax of strstr(
How to initialize a structure?
List out rules for pointer operations.
Write different situations to occur errors during I/O operations on a file.
What is command line argument?
Q.3 Attempt any two of the followings:
What is pointer? List out rules for pointer operations.
Write a program that demonstrate passing structure to function as pass by
address.
Explain strlwr( and strupr( with example.
10
Write a program that demonstrate use of nested macro to find minimum
number between three numbers.
04
Q.4 Attempt any two of the followings: 14
Write a program that counts total characters, total words, total lines present in
text.
What is Dynamic memory allocation? Explain malloc( and calloc( function
with suitable example.
Write a program which accepts 10 numbers from keyboard. And write prime
numbers in "prime.txt" file and non-prime numbers in "nonprime.txt" file
between the numbers.
Q.5 Attempt any two of the following. 14
What is Macro? Explain any three predefined macros with example.
What is Self-referential structure? Explain it with suitable example.
Explain "pointer to function" concept with example.


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