JNTU
JNTU MCA 2019 COMPUTER PROGRAMMING USING C Previous Question Paper (April/May – 2019 - R17)
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 x 5 Marks = 25
What is flowchart? Explain different symbols used for flowchart.
Answer
A flowchart is a graphical representation of an algorithm or a step-by-step process used to solve a problem. It uses standard symbols connected by arrows to show the flow of control.
- Oval (Terminal): Represents the start or end of a program.
- Parallelogram (Input/Output): Used for data input or displaying output.
- Rectangle (Process): Represents arithmetic operations or data manipulation.
- Diamond (Decision): Used for logical conditions that result in a path split (e.g., Yes/No).
- Arrows (Flow lines): Indicate the direction of the process flow.
Explain continue and break statements in C.
Answer
The break statement is used to terminate the execution of the nearest enclosing loop (for, while, do-while) or switch statement immediately, transferring control to the next statement after the block. The continue statement skips the remaining code inside the current iteration of a loop and forces the program to jump to the next iteration of the loop.
What is array? How to declare array? Explain applications of array.
Answer
Sign in to view the complete answer paper.
Explain declaration and initialization of array of strings.
Answer
Sign in to view the complete answer paper.
How does the fopen ( ) works? Explain it with example.
Answer
Sign in to view the complete answer paper.
Part B
5 x 10 Marks = 50
Draw the flow chart and write the algorithm to find the roots of a quadratic equation for all the cases.
Answer
Sign in to view the complete answer paper.
Discuss about the following operators in C language with example:
a) Bitwise operators b) Increment and decrement operators c) Logical operators
Answer
Sign in to view the complete answer paper.
Explain about switch statement and Write a program to perform arithmetic operations using switch.
Answer
Sign in to view the complete answer paper.
What is recursion? What are the advantages and disadvantages of recursion?
Answer
Sign in to view the complete answer paper.
Write a C program to find the factorial of a numbers using recursion.
Answer
Sign in to view the complete answer paper.
Write a C program to print the multiplication table for numbers 1 to n using two dimensional arrays.
Answer
Sign in to view the complete answer paper.
Explain the concept of array of pointers with examples.
Answer
Sign in to view the complete answer paper.
Explain the declaration of pointers and pointer to pointer with examples.
Answer
Sign in to view the complete answer paper.
Discuss command line arguments in detail with examples.
Answer
Sign in to view the complete answer paper.
How to copy and compare structure variables? Illustrate with example.
Answer
Sign in to view the complete answer paper.
Write a C program to find the length of a string and reverse the given string without using string handling functions.
Answer
Sign in to view the complete answer paper.
Write a C program to display the contents of the file in reverse order.
Answer
Sign in to view the complete answer paper.
Explain the following file handling functions:
a) fseek() b) ftell() c) rewind() d) feof()
Answer
Sign in to view the complete answer paper.