Exam Details
Subject | advanced c programming (adv – c) | |
Paper | ||
Exam / Course | mca(integrated) | |
Department | ||
Organization | Gujarat Technological University | |
Position | ||
Exam Date | May, 2017 | |
City, State | gujarat, ahmedabad |
Question Paper
1
Seat No.: Enrolment
GUJARAT TECHNOLOGICAL UNIVERSITY
MCA INTEGRATED- SEMESTER-II • EXAMINATION SUMMER 2017
Subject Code: 4420602 Date: 02/06/2017
Subject Name: Advanced C Programming (Adv
Time: 10:30 A.M. to 1:00 P.M. Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
Q.1
Answer the following
i. Explain fseek and ftell functions.
ii. Differentiate between int and int
03
04
Explain any four functions used for writing in the file.
07
Q.2
Create a structure having data member customer name, address and mobile no.
Write a program to display details of all customers in ascending order of customer name.
07
Differentiate between function and macro. Create a macro and function for swapping two numbers and explain the difference among them.
07
OR
Explain dynamic memory allocation and static memory allocation in detail.
07
Q.3
Write an algorithm to perform push, pop and peep operation on stack of an integer.
07
Write down array and linked representation of Tree with the help of suitable example.
07
OR
Q.3
Write down the various operations and applications of a queue.
07
Explain pre order, in order and post order traversal of binary tree with the help of suitable example.
07
Q.4
Write Short note on following
1. In degree and out degree
2. Height and depth of tree
3. Directed and undirected Graph
02
03
02
Write a program to perform following operations on singly linked list
i. Add node at end of list
ii. insert node after any node
04
03
OR
Q.4
Differentiate between array and linked list. Write down the various applications of linked list in brief.
07
Write short note on command line arguments and bit field.
07
Q.5
Differentiate between
i. Structure and union
ii. Stack and Heap memory area
04
03
Write a program to print number of character and number of lines of a given file.
07
2
OR
Q.5
Write down the output of following code snippet
void main()
int
int
printf("%d
#define swap(a,b)
void main()
static int
printf("%d
03
04
Write short note on following:
i. pointer to pointer
ii. and operator
03
04
Seat No.: Enrolment
GUJARAT TECHNOLOGICAL UNIVERSITY
MCA INTEGRATED- SEMESTER-II • EXAMINATION SUMMER 2017
Subject Code: 4420602 Date: 02/06/2017
Subject Name: Advanced C Programming (Adv
Time: 10:30 A.M. to 1:00 P.M. Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
Q.1
Answer the following
i. Explain fseek and ftell functions.
ii. Differentiate between int and int
03
04
Explain any four functions used for writing in the file.
07
Q.2
Create a structure having data member customer name, address and mobile no.
Write a program to display details of all customers in ascending order of customer name.
07
Differentiate between function and macro. Create a macro and function for swapping two numbers and explain the difference among them.
07
OR
Explain dynamic memory allocation and static memory allocation in detail.
07
Q.3
Write an algorithm to perform push, pop and peep operation on stack of an integer.
07
Write down array and linked representation of Tree with the help of suitable example.
07
OR
Q.3
Write down the various operations and applications of a queue.
07
Explain pre order, in order and post order traversal of binary tree with the help of suitable example.
07
Q.4
Write Short note on following
1. In degree and out degree
2. Height and depth of tree
3. Directed and undirected Graph
02
03
02
Write a program to perform following operations on singly linked list
i. Add node at end of list
ii. insert node after any node
04
03
OR
Q.4
Differentiate between array and linked list. Write down the various applications of linked list in brief.
07
Write short note on command line arguments and bit field.
07
Q.5
Differentiate between
i. Structure and union
ii. Stack and Heap memory area
04
03
Write a program to print number of character and number of lines of a given file.
07
2
OR
Q.5
Write down the output of following code snippet
void main()
int
int
printf("%d
#define swap(a,b)
void main()
static int
printf("%d
03
04
Write short note on following:
i. pointer to pointer
ii. and operator
03
04
Other Question Papers
Subjects
- advanced c programming (adv – c)
- advanced python
- basic mathematics for it
- big data
- c++ with class libraries (cpp)
- communication skills - ii
- communication skills-1
- cyber security and forensics (csf)
- data analytics with r
- data structure
- database management systems
- discrete mathematics for computer science (dmcs)
- environmental studies
- fundamentals of computer
- fundamentals of database management systems
- fundamentals of networking
- fundamentals of programming – i
- fundamentals of web
- information security
- java programming
- machine learning
- management information systems (mis)
- mobile programming
- network security
- operating system
- operations research
- python (py)
- software engineering
- software testing
- statistical methods
- uml & object oriented modeling
- web development tools