Exam Details

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


Question Paper

B.C.A. (Semester II) (CBCS) Examination Nov/Dec-2018
ADVANCE PROGRAMMING IN C
Time: 2½ Hours Max. Marks: 70
Instructions: All questions are compulsory.
Figures to the right place indicate full marks.
Q.1 Choose correct alternatives: 14
#include<stdio.h>
void main()

int i 10;
void


Compiler time error
Segmentation fault /runtime crash
10
Undefined behavior
The memory allocation function modifies the previous allocated
space.
calloc free
malloc realloc
The value of EOF is
0
1 10
What will be the output of the following program?
#include<stdio .h>
#define square(x) x*x
void main

int
i 64 square(4);
printf("%d",

4 64
16 None of These
C preprocessor is conceptually the first step during compilation.
True False
A program that has no command line arguments will have argc__
Zero Negative
One Two
operator connects the structure name to its member name?

. Both and
Page 2 of 2
SLR-SH-6
Strcat function adds null
Only if there is space Always
Depends on the standard Depends on the compiler
The preprocessor provides the ability for
The inclusion of header files
The inclusion of macro expansions
Conditional compilation and line control
All of the above
10) Expression and are same.
True False
11) function should be used to free the memory allocated by calloc().
dealloc(); malloc(variable_name
free memalloc(variable_name,
12) A structure can be nested inside another structure.
True False
13) The operator can be used access structure elements using a structure
variable.
True False
14) malloc() returns a NULL if it fails to allocate the requested memory.
True False
Q.2 Solve any 7 from the following 14
Give any two features of preprocessors.
Give the syntax for opening File.
Write the syntax of pointer declaration.
Write the syntax of union?
Give the syntax for macro declaration.
What is difference between printf() and fprintf()?
Declaration syntax of realloc() function.
What is the difference between malloc() and calloc()?
Give the syntax getw() and putw().
Q.3 Solve any two from the following. 10
What are the differences between structure and union?
Why preprocessor directives are used? Explain preprocessor directives
with its type.
Explain pointer to pointer with example.
What is pointer? Explain pointer to structure in detail. 04
Q.4 Solve any two from the following. 14
How to pass structure to the function? Explain with suitable example.
Write a program to read integer numbers from user and store into the file
"Number", reopen and read the same file then copy odd numbers into "odd"
file and even numbers into "even" file.
What is Dynamic memory allocation? Explain malloc() and calloc() function
with suitable example.
Q.5 Solve any two from the following. 14
Write a program that counts total characters, total words, total lines present in
text file.
Write a program that demonstrates difference between structure and union.
What is command line argument? Explain command line argument 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