Jawaharlal Nehru Technological University Hyderabad

Jawaharlal Nehru Technological University Hyderabad B.Tech I Year COMPUTER PROGRAMMING IN C Previous Question Paper (December - 2017 - R16)

B.Tech | I Year | I Semester | R16 | December - 2017

Answer PaperPaper Code: 131ADMaximum Marks: 75Time: 3 hours

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

125 marks
a

Explain rules of variables.

2 marks

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.

b

Give the symbols of flow chart.

3 marks

Answer

Common flowchart symbols include: Oval (Start/End), Parallelogram (Input/Output), Rectangle (Process), Diamond (Decision), and Arrows (Flow lines).

c

What are the limitations of recursion.

2 marks

Answer

Sign in to view the complete answer paper.

d

What are uses of binary search as compared with linear search.

3 marks

Answer

Sign in to view the complete answer paper.

e

Differentiate between gets() and scanf().

2 marks

Answer

Sign in to view the complete answer paper.

f

List the substrings that can be formed from the string “ABCD”.

3 marks

Answer

Sign in to view the complete answer paper.

g

Differentiate between Union and Structure.

2 marks

Answer

Sign in to view the complete answer paper.

h

Explain about the typedef with an example.

3 marks

Answer

Sign in to view the complete answer paper.

i

What is the use of rewind( )?

2 marks

Answer

Sign in to view the complete answer paper.

j

What is the impact of fclose( ) on buffered data.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

Explain the different types of bitwise operators are used in C.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write an algorithm to find the greatest number among the three given numbers.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Write a program to swap the two numbers without using a temporary variable.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the different types of operators are used in C.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Write a program to implement the binary search by using functions.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the two dimensional arrays for Inter Function Communication.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Write a program to generate Pascal’s triangle by using an array.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is recursion? Explain the different types of recursion.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Explain the dynamic memory functions.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to count the number of times a given character appears in the string.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Write a program to sort the names of employees alphabetically.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the rules for pointer operations.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Write a program using pointer to structure to initialize the members in the structure. Use functions to print the student’s information.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the Enumerated data types with an example.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Explain the command line arguments with an example.

5 marks

Answer

Sign in to view the complete answer paper.

b

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.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Explain the different types of files are used in C.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to print the records in reverse order. The file must be opened in binary mode.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Write a program to append a binary file at the end of another.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the function calls of fseek( ).

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of COMPUTER PROGRAMMING IN C from Jawaharlal Nehru Technological University Hyderabad for B.Tech CE I Year I Semester, December - 2017, R16.

For the solved question paper with answers, switch to the Answer Paper tab.

Other papers in COMPUTER PROGRAMMING IN C

Loading Question Papers

Fetching data from database...