Exam Details
Subject | advance programming in c | |
Paper | ||
Exam / Course | b.c.a | |
Department | ||
Organization | solapur university | |
Position | ||
Exam Date | March, 2018 | |
City, State | maharashtra, solapur |
Question Paper
B.C.A. (Semester II) (CBCS) Examination Mar/Apr-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:
10
What will happen after compiling and running following code?
main() printf("%p", main);
Error
Will make an infinite loop
Some address will be printed
None of these
C program
Must contain at least one function
Needs input data
Need not contain any function
None of the above
Which of the following are correctly frmed #define statements in
#define CUBE
#define CUBE(x)
#define
#define CUBE(X)
What will be printed after compiling and running the following code?
main() char printf("%d
1 1
1 2
2 1
2 2
For binary files, a must be appended to the mode string.
Nothing
"b"
"binary"
"01?
If there is any error while opening a file, fopen will return?
Nothing
EOF
NULL
Depends on compiler
For a typical program, the input is taken using
scanf
Files
Command-line
All of the mentioned
What is the use of getchar()?
The next input character each time it is called
EOF when it encounters end of file
Both a and b
None of the mentioned
Page 2 of 2
SLR-SR-6
User-defined data type can be derived by
struct
enum
typedef
All of the mentioned
10) Number of bytes in memory taken by the below structure is?
struct test int char
Multiple of integer size
Integer size+character size
Depends on the platform
None of the mentioned
Q.1
State the following statement True or False:-
04
Are the expression and are not same?
The #include preprocessor directive is used to insert one file into another.
A macro must always be defined in capital letters.
One of elements of a structure can be a pointer to the same structure.
Q.2
Answer any Seven of the following:-
14
Write use #pragma directives.
What is macro?
Use of alloc.h header file.
What is union? With syntax.
What is pointer? With example.
Write syntax of Nested structure.
State return types used in C language.
Write the purpose of ftell() and rewind() function.
Write the syntax of pointer initialization.
Q.3
Write the Answer of the following questions:- (Any Two)
10
Explain Relationship between Array and Pointer.
Write note a parameterized macros.
Write a program in C to access a student information (roll, name, address, percentage) and print as it is by using union.
When to Use Call by Value and when to use Call by Reference?
04
Q.4
Answer any two of the following:-
14
What is file? Explain its modes.
What is structure? Explain pointer to structure with example.
Write a program in C copy the content of one file in to another file.
Q.5
Answer any two of the following:-
14
What is Preprocessor? Explain Preprocessor directives.
What is String? Explain string handling functions.
Write a program in C to swap two numbers by using pointer.
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:
10
What will happen after compiling and running following code?
main() printf("%p", main);
Error
Will make an infinite loop
Some address will be printed
None of these
C program
Must contain at least one function
Needs input data
Need not contain any function
None of the above
Which of the following are correctly frmed #define statements in
#define CUBE
#define CUBE(x)
#define
#define CUBE(X)
What will be printed after compiling and running the following code?
main() char printf("%d
1 1
1 2
2 1
2 2
For binary files, a must be appended to the mode string.
Nothing
"b"
"binary"
"01?
If there is any error while opening a file, fopen will return?
Nothing
EOF
NULL
Depends on compiler
For a typical program, the input is taken using
scanf
Files
Command-line
All of the mentioned
What is the use of getchar()?
The next input character each time it is called
EOF when it encounters end of file
Both a and b
None of the mentioned
Page 2 of 2
SLR-SR-6
User-defined data type can be derived by
struct
enum
typedef
All of the mentioned
10) Number of bytes in memory taken by the below structure is?
struct test int char
Multiple of integer size
Integer size+character size
Depends on the platform
None of the mentioned
Q.1
State the following statement True or False:-
04
Are the expression and are not same?
The #include preprocessor directive is used to insert one file into another.
A macro must always be defined in capital letters.
One of elements of a structure can be a pointer to the same structure.
Q.2
Answer any Seven of the following:-
14
Write use #pragma directives.
What is macro?
Use of alloc.h header file.
What is union? With syntax.
What is pointer? With example.
Write syntax of Nested structure.
State return types used in C language.
Write the purpose of ftell() and rewind() function.
Write the syntax of pointer initialization.
Q.3
Write the Answer of the following questions:- (Any Two)
10
Explain Relationship between Array and Pointer.
Write note a parameterized macros.
Write a program in C to access a student information (roll, name, address, percentage) and print as it is by using union.
When to Use Call by Value and when to use Call by Reference?
04
Q.4
Answer any two of the following:-
14
What is file? Explain its modes.
What is structure? Explain pointer to structure with example.
Write a program in C copy the content of one file in to another file.
Q.5
Answer any two of the following:-
14
What is Preprocessor? Explain Preprocessor directives.
What is String? Explain string handling functions.
Write a program in C to swap two numbers by using pointer.
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