JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech I PROGRAMMING FOR PROBLEM SOLVING Previous Question Paper (March/April - 2023 - R22)

B.Tech | I | I | R22 | March/April - 2023

Answer PaperPaper Code: 181APMaximum 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

Give example for an Identifier.

1 marks

Answer

An example of an identifier in C is student_age or totalSum, which are names used to identify variables, functions, or arrays.

b

What is syntax error?

1 marks

Answer

A syntax error occurs when the code violates the grammatical rules of the programming language, preventing the compiler from successfully translating the source code into an executable program.

c

What does strstr() function do?

1 marks

Answer

Sign in to view the complete answer paper.

d

Define Pointer.

1 marks

Answer

Sign in to view the complete answer paper.

e

What fseek() function do?

1 marks

Answer

Sign in to view the complete answer paper.

f

What is define preprocessor command?

1 marks

Answer

Sign in to view the complete answer paper.

g

What is void return type indicate?

1 marks

Answer

Sign in to view the complete answer paper.

h

Define function signature.

1 marks

Answer

Sign in to view the complete answer paper.

i

Write Time complexity of Binary search.

1 marks

Answer

Sign in to view the complete answer paper.

j

Write Time complexity of Insertion sort.

1 marks

Answer

Sign in to view the complete answer paper.

PART - B

210 marks
a

Write pseudo code to find biggest number of a given set.

4 marks

Answer

Sign in to view the complete answer paper.

b

Write the syntaxes of While and Do-While loops. Explain. Differentiate between them.

6 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Write an algorithm to find the roots of a Quadratic equation.

4 marks

Answer

Sign in to view the complete answer paper.

b

List out Bitwise operators. Explain each one along with their precedence and associativity.

6 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Define an Array. Write a C code for Matrix multiplication using arrays.

6 marks

Answer

Sign in to view the complete answer paper.

b

Write about Pointer Arithmetic Operations.

4 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Define Union? Write the advantages of Union over Structure? Justify your answer?

4 marks

Answer

Sign in to view the complete answer paper.

b

Write a C code to find string length?

6 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Write about various operations that can be performed on files. Write various modes of file operations.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a C code to read and print the contents of a file.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

What is the need of Pre-processor commands? Explain.

4 marks

Answer

Sign in to view the complete answer paper.

b

Write a C code to find the number of characters in a file.

6 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

What is dynamic memory allocation? Why it is required explain?

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a C code to find Factorial of a given number using Recursion.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Differentiate call by value and call by reference.

4 marks

Answer

Sign in to view the complete answer paper.

b

Write a C code to print Fibonacci sequence using recursion.

6 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Write Linear search algorithm? Explain with example.

8 marks

Answer

Sign in to view the complete answer paper.

b

Write two applications of searching.

2 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

What is sorting? Explain Selection sort algorithm with example.

8 marks

Answer

Sign in to view the complete answer paper.

b

What is Time complexity?

2 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of PROGRAMMING FOR PROBLEM SOLVING from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech IT I I, March/April - 2023, R22.

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

Other papers in PROGRAMMING FOR PROBLEM SOLVING

Loading Question Papers

Fetching data from database...