Download JNTUH MCA 1st Sem R17 2018 January 841AC Computer Programming Using C Question Paper

Download JNTUH (Jawaharlal nehru technological university) MCA (Master of Computer Applications) 1st Sem (First Semester) Regulation-R17 2018 January 841AC Computer Programming Using C Previous Question Paper


R17

Code No:841AC















JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

MCA I Semester Examinations, January - 2018

COMPUTER PROGRAMMING USING C

Time: 3hrs

















Max.Marks:75


Note: This question paper contains two parts A and B.

Part A is compulsory which carries 25 marks. Answer all questions in Part A. Part B
consists of 5 Units. Answer any one full question from each unit. Each question carries 10
marks and may have a, b, c as sub questions.



PART - A



















5 ? 5 Marks = 25

1.a)

What are the different data types used in C ? Explain with suitable examples?

[5]

b)

What are the Unconditional Statements? Explain the use of unconditional statements in C
with examples.

















[5]

c)

Discuss the two and Multi dimensional array with suitable example.



[5]

d)

List the differences between Structure and Union. Give an example to demonstrate
Enumerated type.

















[5]

e)

What is file? List the Differences between text and binary files.





[5]



PART - B

















5 ? 10 Marks = 50

2.a)

Write a program to display any three integers in ascending order by using conditional
operator (ternary).

b)

Write a program to evaluate the following expression.
i) E=MC2 (ii) r= a>b && a>c ||!(a<b)











[5+5]

OR

3.

What are the different types of C token? Explain each with suitable example.

[10]


4.a)

What is function in C? Discuss the different types of functions used in C and its
advantages.

b)

Write a program to check the given number is palindrome or not using function. [5+5]

OR

5.a)

What are the different types of storage classes in C? Explain with suitable example.

b)

Write a program to generate Fibonacci series by using function and static storage class.






















[5+5]


6.

Write a program to transpose and display a matrix using pointers and functions. [10]

OR

7.

What is Pointers to functions? Explain. Write a program to swap to numbers using pointer
and function.

















[10]












8.a)

Write a program to check the given string is palindrome or not by using command line
argument and function.

b)

Write a program to append two strings without using built-in function.



[5+5]

OR

9.a)

Write a program to multiply two complex numbers using structure and function.

b)

Write a program to sort 10 strings in descending order using command line arguments in C.






















[5+5]

10.a) What are the file handling functions in C? Explain.
b) Write a program to display the even strings from the given file in C.



[5+5]

OR

11.

Write a program to copy the content of one file to another file.





[10]





---oo0oo---


This post was last modified on 16 March 2023