JNTU
JNTU B.Tech I COMPUTER PROGRAMMING IN C Previous Question Paper (May - 2019 - R16)
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
(25 Marks)
Explain the conversion of Decimal number to Hexadecimal number with an example.
Answer
To convert a decimal number to hexadecimal, repeatedly divide the number by 16 and record the remainders. The remainders, read in reverse order, represent the hexadecimal digits (where 10-15 are represented by A-F). For example, to convert 254 to hex: 254 / 16 = 15 remainder 14 (E), 15 / 16 = 0 remainder 15 (F). Thus, 254 in decimal is FE in hexadecimal.
Differentiate between declaration and definition of a variable.
Answer
A declaration informs the compiler about the name and type of a variable without allocating memory for it. A definition, however, specifies the variable and allocates the necessary memory storage for it. While a variable can be declared multiple times, it can be defined only once.
What is a user defined function?
Answer
Sign in to view the complete answer paper.
What is the use of type qualifier?
Answer
Sign in to view the complete answer paper.
Differentiate between *p++ and p++.
Answer
Sign in to view the complete answer paper.
What is a pointer? Explain how the pointer variable declared and initialized.
Answer
Sign in to view the complete answer paper.
Explain about the structures containing pointers with an example.
Answer
Sign in to view the complete answer paper.
Explain about self-referential structures.
Answer
Sign in to view the complete answer paper.
What is the usage of fget() and fput() functions.
Answer
Sign in to view the complete answer paper.
List the positioning functions in files.
Answer
Sign in to view the complete answer paper.
Part B
(50 Marks)
Describe different Computing Environments.
Answer
Sign in to view the complete answer paper.
Explain about type conversion mechanism available in C language.
Answer
Sign in to view the complete answer paper.
Write an algorithm to find the factorial of a given number.
Answer
Sign in to view the complete answer paper.
Differentiate between While and Do While with an example.
Answer
Sign in to view the complete answer paper.
Explain the different types of storage classes with an example.
Answer
Sign in to view the complete answer paper.
Write a program to search the element in the given list by using the binary search.
Answer
Sign in to view the complete answer paper.
Write a program to sort the elements by using bubble sort.
Answer
Sign in to view the complete answer paper.
What is recursion? Explain the limitations of recursion.
Answer
Sign in to view the complete answer paper.
Write a program to find the length of the given string.
Answer
Sign in to view the complete answer paper.
Explain the memory allocation functions with an example.
Answer
Sign in to view the complete answer paper.
Explain the concept of pointers to pointers with an example.
Answer
Sign in to view the complete answer paper.
Write a ‘C’ program to append a string to the end of other string by using string manipulation function.
Answer
Sign in to view the complete answer paper.
Explain about the enumerated data types with an example.
Answer
Sign in to view the complete answer paper.
Explain about bit fields with an example.
Answer
Sign in to view the complete answer paper.
Explain how the structure variable passed as a parameter to a function with example.
Answer
Sign in to view the complete answer paper.
Explain the Command line arguments with an example.
Answer
Sign in to view the complete answer paper.
Differentiate between text and binary files with an example.
Answer
Sign in to view the complete answer paper.
Write a ‘C’ program to append the contents of one file to another.
Answer
Sign in to view the complete answer paper.
Write a ‘C’ program to count number of words and lines in the given text file.
Answer
Sign in to view the complete answer paper.
Explain about file i/o operations in ‘C’.
Answer
Sign in to view the complete answer paper.