Download JNTUH MCA 1st Sem R13 2020 January 811AC Computer Programming Question Paper

Download JNTUH (Jawaharlal nehru technological university) MCA (Master of Computer Applications) 1st Sem (First Semester) Regulation-R13 2020 January 811AC Computer Programming Previous Question Paper


R13

Code No: 811AC















JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

MCA I Semester Examinations, January - 2020

COMPUTER PROGRAMMING

Time: 3hrs















Max.Marks:60

S


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

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



PART - A



















5 ? 4 Marks = 20



1.a) Discuss about the features of procedure oriented programming languages. [4]
b) Describe any five preprocessor directives in C with examples.



[4]

c) What is the role of pointers in inter function communication?



[4]

d)

What is a structure? How to define and declare a structure in C?

[4]

e) What are the various types of files supported in C?





[4]



PART - B

















5 ? 8 Marks = 40


2.a)

What is an operator? Describe precedence of various operators in C and their



associativity.

b)

What is type conversion? Explain implicit and explicit type conversions in C with

suitable examples.

















[3+5]

OR

3.a)

Evaluate the following expression in C with the values P=5, Q=20, R=15
P + (Q*R/P)*P + Q*R









b) Enumerate all the bitwise operators in C with example.







[5+3]



4.a)

Demonstrate break and continue statements with suitable examples.





b)

Write a C program to find factorial of given number using recursive functions. [5+3]

OR

5.a)

Explain about various storage classes in C with suitable examples.



b)

Demonstrate all the iterative statements in C with examples.





[4+4]


6.a)

Define an Array. What are the advantages of Arrays? How to declare and initialize
string values using arrays in C?





b)

Write a C program for addition of two matrices.









[4+4]

OR

7.a)

How to pass an array to a function? Explain with an example program.



b)

What is pointer to pointers? Give syntax and an example.





[5+3]






8.a)

How to define union in C? Differentiate between unions and structures.

b)

Explain about any five String built-in functions with syntax and examples.

[4+4]

OR

9.

Write a C program to read 3 student details such as Htno, name, marks in 5 subjects and

Scalculate and display total and average marks of each student. [8]


10.a) Write syntax and examples for getc( ), fgetc( ), putc( ) and fputc( ) functions.
b) Write a C program to reverse the content of given file using fseek( ) function. [3+5]

OR

11.a) Differentiate between sequential access files and random access files.
b) Write a C program to concatenate the contents of two files into another file.

[4+4]






---ooOoo---

This post was last modified on 16 March 2023