JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech I Year C PROGRAMMING FOR ENGINEERS Previous Question Paper (September - 2023 - R22)

B.Tech | I Year | I Semester | R22 | September - 2023

Answer PaperPaper Code: 181AFMaximum Marks: 60Time: 3 Hours

Note: This question paper contains two parts A and B.

i) Part- A for 10 marks, ii) Part - B for 50 marks.

Part-A is a compulsory question which consists of ten sub-questions from all units carrying equal marks.

Part-B consists of ten questions (numbered from 2 to 11) carrying 10 marks each. From each unit, there are two questions and the student should answer one of them. Hence, the student should answer five questions from Part-B.

Part A

110 marks
a

What is a compiler?

1 marks

Answer

A compiler is a system software that translates high-level programming language code into machine-level language code that can be executed directly by the computer's processor.

b

What is the purpose of loader?

1 marks

Answer

The purpose of a loader is to load the executable program from secondary storage into the main memory (RAM) and prepare it for execution by the operating system.

c

What is the result of 32<<2?

1 marks

Answer

Sign in to view the complete answer paper.

d

List the operators at highest precedence level.

1 marks

Answer

Sign in to view the complete answer paper.

e

What is an array?

1 marks

Answer

Sign in to view the complete answer paper.

f

How many values can be returned by a function?

1 marks

Answer

Sign in to view the complete answer paper.

g

What is a macro?

1 marks

Answer

Sign in to view the complete answer paper.

h

What is the need of #define?

1 marks

Answer

Sign in to view the complete answer paper.

i

Define union.

1 marks

Answer

Sign in to view the complete answer paper.

j

What is the time complexity of bubble sort?

1 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

Explain the need of a flowchart in program development.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write an algorithm to find roots of a quadratic equation.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Differentiate between source code and object code.

5 marks

Answer

Sign in to view the complete answer paper.

b

What are the various data types supported by ‘C’?

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Illustrate types of assignment operators.

5 marks

Answer

Sign in to view the complete answer paper.

b

Differentiate between logical not operator and bitwise not operator.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Explain the dangling else problem with an example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to find factorial of a number using while loop.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

What are the disadvantages of recursive functions?

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a recursive function to print Fibonacci sequence till n.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Write a program to find the sum of the primary diagonal of n×n matrix using two dimensional array.

5 marks

Answer

Sign in to view the complete answer paper.

b

What are the various ways of passing an array to a function? Give illustrations.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

What is a pointer? What operators are applicable to pointer variables?

5 marks

Answer

Sign in to view the complete answer paper.

b

Differentiate between malloc and calloc functions.

5 marks

Answer

Sign in to view the complete answer paper.

OR
9

Write a program to append the content of a source file to a target file, read both file names as command line arguments.

10 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

In which situations union is preferred over structure?

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the enumerated data type with an example.

5 marks

Answer

Sign in to view the complete answer paper.

OR
11

Make a comparison of bubble sort and insertion sort. Which sorting technique can be recommended for student marks data? Justify your recommendation.

10 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of C PROGRAMMING FOR ENGINEERS from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech ECE I Year I Semester, September - 2023, R22.

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

Other papers in C PROGRAMMING FOR ENGINEERS

Loading Question Papers

Fetching data from database...