JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech I Year PROGRAMMING FOR PROBLEM SOLVING Previous Question Paper (May/June - 2019 - R18)

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

Answer PaperPaper Code: 151ACMaximum 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 a brief note on storage class.

2 marks

Answer

A storage class in C defines the scope, visibility, and lifetime of a variable. The four primary storage classes are auto, extern, static, and register, which determine where the variable is stored in memory and how long it persists during program execution.

b

Give a note on unions.

2 marks

Answer

A union is a user-defined data type that allows storing different data types in the same memory location. Unlike a structure, all members of a union share the same memory space, and the size of the union is equal to the size of its largest member.

c

How can we determine whether a file is successfully opened or not using fopen() function?

2 marks

Answer

Sign in to view the complete answer paper.

d

Give syntax to create a pointer to function.

2 marks

Answer

Sign in to view the complete answer paper.

e

How binary search works?

2 marks

Answer

Sign in to view the complete answer paper.

f

What is a flowchart? How it is different from an algorithm?

3 marks

Answer

Sign in to view the complete answer paper.

g

Write the advantages and disadvantages of using pointers.

3 marks

Answer

Sign in to view the complete answer paper.

h

Write a ‘C’ program to read a binary file and print it on console

3 marks

Answer

Sign in to view the complete answer paper.

i

Write short notes on dynamic memory allocation.

3 marks

Answer

Sign in to view the complete answer paper.

j

How linear search is different from binary search?

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

Explain typical steps for entering, compiling and executing ‘C’ programs.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write an algorithm to find the roots of a quadratic equation considering all cases.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Distinguish between all loop statements along with a flowchart and with an example program.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program in ‘C’ to check whether a given integer number is odd or even.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Give a brief note on Enumeration data type.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a ‘C’ program to find the biggest number and smallest number of given ‘n’ numbers using arrays.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Why structures are necessary? Explain Nested Structures with a valid example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Give a detailed note on pointer expressions.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Explain Steps for file operations and different modes of files.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain about preprocessor commands define, undef.

5 marks

Answer

Sign in to view the complete answer paper.

OR
7

Write a program to read a text file, convert all the lowercase characters into upper case and re-write the uppercase characters in the file.

10 marks

Answer

Sign in to view the complete answer paper.

8

What is Recursion? Write a ‘C’ Program for Towers of Hanoi. Also specify in diagram for it.

10 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

How to pass the structure to functions as an argument? Explain with a suitable example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain about Allocating memory for arrays of different data types.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Give a brief note on insertion sort with an example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Discuss the time complexity of the bubble sort.

5 marks

Answer

Sign in to view the complete answer paper.

OR
11

Write a program in ‘C’ to print list of integers in ascending order using bubble sort and selection sort techniques.

10 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of PROGRAMMING FOR PROBLEM SOLVING from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech CE I Year I-I, May/June - 2019, R18.

For the question paper without answers, switch to the Question Paper tab.

Other papers in PROGRAMMING FOR PROBLEM SOLVING

Loading Question Papers

Fetching data from database...