Jawaharlal Nehru Technological University Hyderabad
Jawaharlal Nehru Technological University Hyderabad B.Tech I Year COMPUTER PROGRAMMING IN C Previous Question Paper (December - 2017 - R16)
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.
Part A
Explain rules of variables.
Answer
Variable names must start with a letter or underscore, followed by letters, digits, or underscores. They are case-sensitive, cannot be a C keyword, and cannot contain spaces or special characters.
Give the symbols of flow chart.
Answer
Common flowchart symbols include: Oval (Start/End), Parallelogram (Input/Output), Rectangle (Process), Diamond (Decision), and Arrows (Flow lines).
What are the limitations of recursion.
Answer
Sign in to view the complete answer paper.
What are uses of binary search as compared with linear search.
Answer
Sign in to view the complete answer paper.
Differentiate between gets() and scanf().
Answer
Sign in to view the complete answer paper.
List the substrings that can be formed from the string “ABCD”.
Answer
Sign in to view the complete answer paper.
Differentiate between Union and Structure.
Answer
Sign in to view the complete answer paper.
Explain about the typedef with an example.
Answer
Sign in to view the complete answer paper.
What is the use of rewind( )?
Answer
Sign in to view the complete answer paper.
What is the impact of fclose( ) on buffered data.
Answer
Sign in to view the complete answer paper.
Part B
Explain the different types of bitwise operators are used in C.
Answer
Sign in to view the complete answer paper.
Write an algorithm to find the greatest number among the three given numbers.
Answer
Sign in to view the complete answer paper.
Write a program to swap the two numbers without using a temporary variable.
Answer
Sign in to view the complete answer paper.
Explain the different types of operators are used in C.
Answer
Sign in to view the complete answer paper.
Write a program to implement the binary search by using functions.
Answer
Sign in to view the complete answer paper.
Explain the two dimensional arrays for Inter Function Communication.
Answer
Sign in to view the complete answer paper.
Write a program to generate Pascal’s triangle by using an array.
Answer
Sign in to view the complete answer paper.
What is recursion? Explain the different types of recursion.
Answer
Sign in to view the complete answer paper.
Explain the dynamic memory functions.
Answer
Sign in to view the complete answer paper.
Write a program to count the number of times a given character appears in the string.
Answer
Sign in to view the complete answer paper.
Write a program to sort the names of employees alphabetically.
Answer
Sign in to view the complete answer paper.
Explain the rules for pointer operations.
Answer
Sign in to view the complete answer paper.
Write a program using pointer to structure to initialize the members in the structure. Use functions to print the student’s information.
Answer
Sign in to view the complete answer paper.
Explain the Enumerated data types with an 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.
Write a program to define a structure for hotel that has members - name, address, grade, number of rooms and room charges. Write a function to print the names of a hotel in a particular grade. Also write a function to print names of a hotel that have room charges less than the specified value.
Answer
Sign in to view the complete answer paper.
Explain the different types of files are used in C.
Answer
Sign in to view the complete answer paper.
Write a program to print the records in reverse order. The file must be opened in binary mode.
Answer
Sign in to view the complete answer paper.
Write a program to append a binary file at the end of another.
Answer
Sign in to view the complete answer paper.
Explain the function calls of fseek( ).
Answer
Sign in to view the complete answer paper.