JNTUH
JNTUH B.Tech I Year COMPUTER PROGRAMMING Previous Question Paper (March/April - 2023 - R15)
Note: i) Question paper consists of Part A, Part B. ii) Part A is compulsory, which carries 25 marks. In Part A, Answer all questions. iii) In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.
PART - A
Define operator Precedence and Associativity.
Answer
Operator Precedence determines the order in which operators are evaluated in an expression containing multiple operators. Associativity determines the direction of evaluation (left-to-right or right-to-left) for operators with the same precedence level.
List out various data types used in c.
Answer
The primary data types in C are:
- Basic types: int, char, float, double
- Derived types: Arrays, Pointers, Structures, Unions
- Enumeration type: enum
- Void type: void
What is a user defined function? Give example.
Answer
Sign in to view the complete answer paper.
How to initialize the elements of an array?
Answer
Sign in to view the complete answer paper.
Define Void Pointer?
Answer
Sign in to view the complete answer paper.
Write the syntax of calloc function.
Answer
Sign in to view the complete answer paper.
Write any two differences between text and binary file.
Answer
Sign in to view the complete answer paper.
Define self-referential structure?
Answer
Sign in to view the complete answer paper.
What is sorting?
Answer
Sign in to view the complete answer paper.
Give the importance of sorting.
Answer
Sign in to view the complete answer paper.
PART - B
Define variable. List the rules for declaring variable. Give valid and invalid examples.
Answer
Sign in to view the complete answer paper.
Write a program to find the Pascal’s triangle for the given input.
Answer
Sign in to view the complete answer paper.
Write a C program to display Fibonacci series using while loop.
Answer
Sign in to view the complete answer paper.
Describe Switch statement. Write c program to read month number and display month name using switch case.
Answer
Sign in to view the complete answer paper.
How to pass parameters to functions? Explain each with an example.
Answer
Sign in to view the complete answer paper.
Differentiate iterative functions and recursive function and write the recursive function to find the solution to towers of Hanoi problem.
Answer
Sign in to view the complete answer paper.
With suitable examples, explain different dynamic memory management functions in C.
Answer
Sign in to view the complete answer paper.
How can you declare pointer variable? Differentiate a variable address and variable value. How to access variable value using pointers? Explain.
Answer
Sign in to view the complete answer paper.
Write c program to reverse the given string without using strrev() function.
Answer
Sign in to view the complete answer paper.
Write a program for addition of two complex numbers by passing structures to a function.
Answer
Sign in to view the complete answer paper.
Explain about the bit field in C.
Answer
Sign in to view the complete answer paper.
Write a ‘C’ program to read the content of source file and convert all upper case letters in source file into lower case letters.
Answer
Sign in to view the complete answer paper.
What are the file status functions? Explain their usage with a sample ‘C’ program.
Answer
Sign in to view the complete answer paper.
Write program to implement bubble sort.
Answer
Sign in to view the complete answer paper.
Explain the procedure to insert a node into single linked list.
Answer
Sign in to view the complete answer paper.
Describe the implementation of binary search.
Answer
Sign in to view the complete answer paper.
Write in detailed note on queue data structure.
Answer
Sign in to view the complete answer paper.