JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech I COMPUTER PROGRAMMING IN C Previous Question Paper (May/June - 2019 - R16)

B.Tech | I | I | R16 | May/June - 2019

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

How real numbers and integers are stored.

2 marks

Answer

Integers are typically stored using binary representation in fixed-width formats (e.g., 2 or 4 bytes) using two's complement notation to handle signs. Real numbers are stored using the IEEE 754 floating-point standard, which divides the memory into a sign bit, an exponent, and a mantissa (fractional part).

b

Explain about identifiers and types in ‘C’.

3 marks

Answer

Identifiers are user-defined names given to entities like variables, functions, and arrays, consisting of letters, digits, and underscores, starting with a letter or underscore. Types define the nature of data a variable can hold, categorized into primary types (int, char, float, double), derived types (arrays, pointers, structures), and void.

c

Discuss the limitations of recursion.

2 marks

Answer

Sign in to view the complete answer paper.

d

Write and explain the time complexity of bubble sort.

3 marks

Answer

Sign in to view the complete answer paper.

e

Explain how to define pointer to a function.

2 marks

Answer

Sign in to view the complete answer paper.

f

What are the string output functions?

3 marks

Answer

Sign in to view the complete answer paper.

g

Distinguish between structure and union.

2 marks

Answer

Sign in to view the complete answer paper.

h

What is meant by self referential structures?

3 marks

Answer

Sign in to view the complete answer paper.

i

What is meant by a binary file?

2 marks

Answer

Sign in to view the complete answer paper.

j

Discuss about fseek and ftell functions.

3 marks

Answer

Sign in to view the complete answer paper.

PART B

210 marks
a

Write a ‘C’ program to print all prime numbers from 1 to N using while loop.

6 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to demonstrate ‘goto’ statement.

4 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Explain the significance of ‘break’ and ‘continue’ statement with a sample program.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain about type conversion in ‘C’.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

What are scope rules in ‘C’?

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain static and extern storage classes with a sample program.

5 marks

Answer

Sign in to view the complete answer paper.

OR
5

Write a ‘C’ program to multiply two non square matrices and explain it with a suitable example.

10 marks

Answer

Sign in to view the complete answer paper.

6

What is meant by arrays of strings? When it will be used? Explain with a ‘C’ program.

10 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

What are the memory allocation functions? Explain them clearly.

3 marks

Answer

Sign in to view the complete answer paper.

b

Write a ‘C’ program to read a string from keyboard and print the numbers of uppercase letters, lower case letters, digits, spaces and special characters.

7 marks

Answer

Sign in to view the complete answer paper.

8

With a sample ‘C’ program explain the concept of passing structures through pointers.

10 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

How we can define structure with in a structure? Explain with a sample program.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write brief notes on command line arguments.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Write a ‘C’ program to read the content of source file and convert all upper case letters in source file into lower case letters.

7 marks

Answer

Sign in to view the complete answer paper.

b

Compare text files and binary files.

3 marks

Answer

Sign in to view the complete answer paper.

OR
11

What are the file status functions? Explain their usage with a sample ‘C’ program.

10 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 MECT-MCT-MEM I I, May/June - 2019, 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...