JNTUH
JNTUH B.Tech I Year COMPUTER PROGRAMMING Previous Question Paper (December - 2018 - R13)
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
Define variable.
Answer
A variable is a named memory location used to store data values that can be modified during program execution. Each variable has a specific data type that determines the size and layout of the memory it occupies.
Explain the syntax of ‘for’ loop with an example.
Answer
The for loop syntax is: for (initialization; condition; increment/decrement) { // body of loop }. It executes the initialization once, checks the condition before each iteration, and performs the increment/decrement after each body execution.
Example: for(int i=0; i<5; i++) { printf("%d ", i); } prints numbers 0 through 4.
Explain about ‘auto’ storage class.
Answer
Sign in to view the complete answer paper.
What is an array? Explain.
Answer
Sign in to view the complete answer paper.
How to use pointers?
Answer
Sign in to view the complete answer paper.
What is String?
Answer
Sign in to view the complete answer paper.
Define union.
Answer
Sign in to view the complete answer paper.
Explain a syntax for printf() function.
Answer
Sign in to view the complete answer paper.
What is queue?
Answer
Sign in to view the complete answer paper.
What is Dequeue?
Answer
Sign in to view the complete answer paper.
Part B
Briefly explain about Bitwise operators.
Answer
Sign in to view the complete answer paper.
Write a C Program to swap two numbers.
Answer
Sign in to view the complete answer paper.
Briefly explain about switch statement.
Answer
Sign in to view the complete answer paper.
Write a C Program to demonstrate the break statement.
Answer
Sign in to view the complete answer paper.
Write a short note on recursive functions with an example.
Answer
Sign in to view the complete answer paper.
What are the limitations of recursion?
Answer
Sign in to view the complete answer paper.
Describe the Pre Processor commands.
Answer
Sign in to view the complete answer paper.
Write a C Program to find the multiplication of two matrices.
Answer
Sign in to view the complete answer paper.
Write a procedure to increment a pointer.
Answer
Sign in to view the complete answer paper.
Write a short note on Pointer to pointer.
Answer
Sign in to view the complete answer paper.
string output functions
Answer
Sign in to view the complete answer paper.
strcmp(s1,s2)
Answer
Sign in to view the complete answer paper.
Write a C Program to demonstrate Pointer to structures.
Answer
Sign in to view the complete answer paper.
Briefly explain about getchar() and putchar() functions.
Answer
Sign in to view the complete answer paper.
Write a C program to demonstrate push and pop operations.
Answer
Sign in to view the complete answer paper.
Explain the bubble sort technique.
Answer
Sign in to view the complete answer paper.
Write a short note on binary search.
Answer
Sign in to view the complete answer paper.