JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

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

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

Answer PaperPaper Code: 181AEMaximum 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. Part-B consists of ten questions (numbered from 2 to 11) carrying 10 marks each. The student should answer five questions from Part-B.

Part A

110 marks
a

What is an identifier?

1 marks

Answer

An identifier is a user-defined name given to program elements such as variables, functions, arrays, structures, or labels to uniquely distinguish them within the program.

b

What is a statement in c?

1 marks

Answer

A statement is a complete instruction to the computer that performs a specific action, such as declaring a variable, performing a calculation, or controlling the flow of execution, and is typically terminated by a semicolon (;).

c

Write a C program to find greatest of two numbers.

1 marks

Answer

Sign in to view the complete answer paper.

d

When do you use “continue” statement?

1 marks

Answer

Sign in to view the complete answer paper.

e

How do you create a “pointer to pointer” in C?

1 marks

Answer

Sign in to view the complete answer paper.

f

How do you pass an array to a function?

1 marks

Answer

Sign in to view the complete answer paper.

g

What is the significance of typedef?

1 marks

Answer

Sign in to view the complete answer paper.

h

List the standard library functions for files.

1 marks

Answer

Sign in to view the complete answer paper.

i

Give array representation of stack.

1 marks

Answer

Sign in to view the complete answer paper.

j

What is the time complexity of linear search method?

1 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

Write about precedence and associativity of operators.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a c program to convert an integer to float.

5 marks

Answer

Sign in to view the complete answer paper.

OR
3

Which basic data types are supported by c? What are their size in terms of bytes? How are they declared? Explain with examples.

10 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Write a program to print below sequence:

1
2 3
4 5 6
7 8 9 10
5 marks

Answer

Sign in to view the complete answer paper.

b

Write a recursive function to find factorial of given number.

5 marks

Answer

Sign in to view the complete answer paper.

OR
5

Write a C program to perform an arithmetic operation using switch statement.(read the operator and operands from console)

10 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Write a program to find whether a given string is palindrome or not.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is array of pointers? In which situations is it useful?

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Write a program to sort the characters in given string alphabetically.

5 marks

Answer

Sign in to view the complete answer paper.

b

What are the applications of pointer?

5 marks

Answer

Sign in to view the complete answer paper.

8

Write a program to copy the contents of one file to another file.

10 marks

Answer

Sign in to view the complete answer paper.

OR
9

What is the difference between structure and union? Illustrate with example.

10 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

What are the application of stacks?

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a C program for binary search.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Simulate insertion sort on following data: 4,5,3,2,7,8,9,11

5 marks

Answer

Sign in to view the complete answer paper.

b

What is a queue? Give linked representation of a queue. What operations can be performed on queue.

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of C PROGRAMMING AND DATA STRUCTURES from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech PHA.E I Year I-I, September - 2023, R22.

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

Other papers in C PROGRAMMING AND DATA STRUCTURES

Loading Question Papers

Fetching data from database...