JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech I Year PROGRAMMING FOR PROBLEM SOLVING Previous Question Paper (December – 2019/January - 2020 - R18)

B.Tech | I Year | I-I | R18 | December – 2019/January - 2020

Answer PaperPaper Code: 151ACMaximum 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 and may have a, b as sub questions.

Part A

125 marks
a

Name any five features of C programming Language.

2 marks

Answer

Five features of C are: 1. Structured programming language, 2. Rich set of built-in operators, 3. Efficient and fast execution, 4. Portable, and 5. Supports dynamic memory allocation.

b

How to declare, define and initialize a pointer?

2 marks

Answer

Declaration: int *ptr;. Definition (assigning address): ptr = &var;. Initialization (combined): int *ptr = &var;.

c

Define preprocessor directive.

2 marks

Answer

Sign in to view the complete answer paper.

d

What is meant by function prototype?

2 marks

Answer

Sign in to view the complete answer paper.

e

What are the advantages of bubble sort?

2 marks

Answer

Sign in to view the complete answer paper.

f

Write any two bitwise operators with examples.

3 marks

Answer

Sign in to view the complete answer paper.

g

What are the applications of an array?

3 marks

Answer

Sign in to view the complete answer paper.

h

Differentiate between text files and binary files.

3 marks

Answer

Sign in to view the complete answer paper.

i

What are the limitations of using recursive functions?

3 marks

Answer

Sign in to view the complete answer paper.

j

How does linear search differ from binary search?

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

What is the importance of precedence and associativity in evaluating an expression?

5 marks

Answer

Sign in to view the complete answer paper.

b

How is ‘switch’ used as a multi-way selection statement? Explain with suitable example.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

State the purpose of unary and conditional operators.

3 marks

Answer

Sign in to view the complete answer paper.

b

What is the significant of ‘break’ and ‘continue’ statements?

3 marks

Answer

Sign in to view the complete answer paper.

c

Discuss about command-line arguments.

4 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Using two dimensional array, write a C program to find the inverse of a 2×2 matrix.

5 marks

Answer

Sign in to view the complete answer paper.

b

Demonstrate the usage of self referential structures using a program.

5 marks

Answer

Sign in to view the complete answer paper.

OR
5

List and explain various basic string functions available in C.

10 marks

Answer

Sign in to view the complete answer paper.

6

Demonstrate the following functions with a correct syntax and code:

a) ftell( ) b) fseek( ) c) rewind( )

10 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Write a C program that prints a specified number of records from the beginning of a given file.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a C program to illustrate define, undef directives.

5 marks

Answer

Sign in to view the complete answer paper.

8

Discuss various methods of passing parameters to functions with suitable C code.

10 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

How to handle memory leaks and dangling pointers?

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a C program that uses calloc( ) to create a memory block for storing n integers and print the stored contents.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Write an algorithm for finding the maximum number of an array elements.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain how linear search works and mention its pros and cons.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Write a C program to demonstrate how insertion sort works.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a C program to find whether a given number is prime or not.

5 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 MME-MMT I Year I-I, December – 2019/January - 2020, 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...