JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

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

B.Tech | I Year | I | R13 | May/June - 2019

Answer PaperPaper Code: 111AFMaximum Marks: 75Time: 3 hours

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

125 marks
a

Give the list of basic data types in “C” language and explain.

2 marks

Answer

The basic data types in C are int (integer values), char (single character values), float (single-precision floating-point numbers), and double (double-precision floating-point numbers). These represent the fundamental storage units used to hold data in memory.

b

Distinguish between a keyword and a reserved word.

3 marks

Answer

In C, keywords and reserved words are synonymous; they are predefined identifiers with special meanings to the compiler (e.g., int, if, while). They cannot be used as variable or function names. Unlike some other languages, C does not distinguish between these two terms.

c

Distinguish between a function declaration and definition.

2 marks

Answer

Sign in to view the complete answer paper.

d

Give the list of preprocessor directives in “C” language.

3 marks

Answer

Sign in to view the complete answer paper.

e

Why is the void pointer useful? When would you use it?

2 marks

Answer

Sign in to view the complete answer paper.

f

Distinguish between calloc() and malloc() functions in “C” language.

3 marks

Answer

Sign in to view the complete answer paper.

g

What are self-referential structures? Give an example.

2 marks

Answer

Sign in to view the complete answer paper.

h

Give the syntax for bit-field declaration and explain.

3 marks

Answer

Sign in to view the complete answer paper.

i

Distinguish between a stack and a queue.

2 marks

Answer

Sign in to view the complete answer paper.

j

Give the applications of linked lists.

3 marks

Answer

Sign in to view the complete answer paper.

PART B

210 marks
a

Distinguish among while, do-while and for statements in “C” language.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program that prints the binary equivalent of a decimal number.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Demonstrate nested if-else statements in “C” language using an example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Demonstrate the usage of break and continue statements using an example.

5 marks

Answer

Sign in to view the complete answer paper.

4

Give an overview of storage classes in “C” language.

10 marks

Answer

Sign in to view the complete answer paper.

OR
5

Explain the following:

10 marks
a

Multi-dimensional arrays in “C”.

5 marks

Answer

Sign in to view the complete answer paper.

b

Structured programming.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Distinguish between a constant pointer and a pointer to constant.

3 marks

Answer

Sign in to view the complete answer paper.

b

Write a “C” program to find length of a string and concatenation of two strings without using string handling functions.

7 marks

Answer

Sign in to view the complete answer paper.

OR
7

What is a function pointer? Give the syntax and applications of a function pointer. Demonstrate how to initialize function pointers and use them in the program.

10 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Write a program to add two complex numbers by passing structure to a function.

5 marks

Answer

Sign in to view the complete answer paper.

b

Demonstrate the following operations using examples: i) fwrite ii) fseek

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Write a “C” program to find number of lines in a file.

5 marks

Answer

Sign in to view the complete answer paper.

b

Give an overview of standard I/O in “C” language.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Demonstrate bubble sorting using an example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to reverse a word using a stack.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Write a program to demonstrate operations on a linked list.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to demonstrate the operations on a queue.

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of COMPUTER PROGRAMMING from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech AME I Year I, May/June - 2019, R13.

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

Other papers in COMPUTER PROGRAMMING

Loading Question Papers

Fetching data from database...