JNTU
JNTU B.Tech I Year COMPUTER PROGRAMMING IN C Previous Question Paper (March/April - 2023 - R16)
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
Convert the given decimal number to binary format: 236
Answer
To convert 236 to binary, divide by 2 repeatedly and record the remainders: 236/2 = 118 (rem 0), 118/2 = 59 (rem 0), 59/2 = 29 (rem 1), 29/2 = 14 (rem 1), 14/2 = 7 (rem 0), 7/2 = 3 (rem 1), 3/2 = 1 (rem 1), 1/2 = 0 (rem 1). Reading remainders from bottom to top, 236 in binary is 11101100.
Give an example for number system conversion from hexadecimal to decimal number system.
Answer
To convert hexadecimal 2A to decimal: (2 × 161) + (10 × 160) = 32 + 10 = 42. Thus, 2A16 = 4210.
What are standard functions?
Answer
Sign in to view the complete answer paper.
What are limitations of recursion?
Answer
Sign in to view the complete answer paper.
Which function is used to access a particular character in a string?
Answer
Sign in to view the complete answer paper.
What do you mean by dangling pointers?
Answer
Sign in to view the complete answer paper.
What are nested structures?
Answer
Sign in to view the complete answer paper.
What is enumerated type?
Answer
Sign in to view the complete answer paper.
What do you mean by a binary file?
Answer
Sign in to view the complete answer paper.
What are the various modes a file can be opened in?
Answer
Sign in to view the complete answer paper.
Part B
Write a C program to perform logical and bitwise operations on the given data.
Answer
Sign in to view the complete answer paper.
Write a program to find greatest of four numbers.
Answer
Sign in to view the complete answer paper.
Distinguish between while and do-while statements.
Answer
Sign in to view the complete answer paper.
What are various storage classes in C language? Explain them.
Answer
Sign in to view the complete answer paper.
Write a C program to add, subtract and multiply two matrices based on the operator that has been given as input. Use switch statement.
Answer
Sign in to view the complete answer paper.
List and explain string manipulation functions.
Answer
Sign in to view the complete answer paper.
Explain memory allocation functions. Illustrate with an example.
Answer
Sign in to view the complete answer paper.
Write a C program for illustrating passing structures through pointers.
Answer
Sign in to view the complete answer paper.
Distinguish between structure and union.
Answer
Sign in to view the complete answer paper.
Write a C program illustrating array of structures concept.
Answer
Sign in to view the complete answer paper.
List and explain file status functions. Give examples.
Answer
Sign in to view the complete answer paper.
Write a C program to count number of characters in a given file.
Answer
Sign in to view the complete answer paper.