S OCT 2020
R19
--- Content provided by FirstRanker.com ---
Code No: 861AC--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
--- Content provided by FirstRanker.com ---
MCA I Semester Examinations, October/ November - 2020
COMPUTER PROGRAMMING AND DATA STRUCTURES
--- Content provided by FirstRanker.com ---
Time: 2hrs
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Max.Marks:75Answer any five questions
All questions carry equal marks
--- Content provided by FirstRanker.com ---
----
--- Content provided by FirstRanker.com ---
1.a)Demonstrate various arithmetic and relational operators available in C language.
b)
--- Content provided by FirstRanker.com ---
What is the significance of declaring a constant as unsigned? Explain various types of
constants available in C.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
[7+8]
--- Content provided by FirstRanker.com ---
2.a)
What is the need of `break', `continue' and `goto' statements in C? Illustrate with an
example C program.
--- Content provided by FirstRanker.com ---
b)
Illustrate the differences between `while' and `do-while' loops in C.
--- Content provided by FirstRanker.com ---
[7+8]
--- Content provided by FirstRanker.com ---
used
3.a)
--- Content provided by FirstRanker.com ---
Explain with the help of a suitable example the use of pointers to functions.b)
List and explain various string manipulation functions available in C.
--- Content provided by FirstRanker.com ---
[7+8]
--- Content provided by FirstRanker.com ---
4.a)
What are self-referential structures? Explain briefly.
--- Content provided by FirstRanker.com ---
b)Illustrate the use of pointers to structures using a C program.
--- Content provided by FirstRanker.com ---
[7+8]
--- Content provided by FirstRanker.com ---
5.a)
Discuss briefly about binary search with an example program in C.
--- Content provided by FirstRanker.com ---
b)Write a C program to sort list of integers using selection sort.
--- Content provided by FirstRanker.com ---
[7+8]
--- Content provided by FirstRanker.com ---
6.a)
What are the symbols used in a flow chart for solving a problem? Give an example flow
chart for solving the factorial of a number.
--- Content provided by FirstRanker.com ---
b)
Describe various computing environments with neat diagrams.
--- Content provided by FirstRanker.com ---
[7+8]
--- Content provided by FirstRanker.com ---
7.a)
Explain various pre-processor commands available in C.
--- Content provided by FirstRanker.com ---
b)
Describe all variants of selection statements with flow-chart, syntax and example C code.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
[7+8]
--- Content provided by FirstRanker.com ---
8.a)
Demonstrate call-by-value and call-by-reference methods with C program.
--- Content provided by FirstRanker.com ---
b)
Explain how a multidimensional array is created and implemented in C.
--- Content provided by FirstRanker.com ---
[7+8]--- Content provided by FirstRanker.com ---
---oo0oo---
--- Content provided by FirstRanker.com ---