JNTUH

JNTUH B.Tech I Year COMPUTER PROGRAMMING Previous Question Paper (March/April - 2023 - R15)

B.Tech | I Year | I | R15 | March/April - 2023

Answer PaperPaper Code: 121AFMaximum Marks: 75Time: 3 hours

Note: i) Question paper consists of Part A, Part B. ii) Part A is compulsory, which carries 25 marks. In Part A, Answer all questions. iii) In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.

PART - A

125 marks
a

Define operator Precedence and Associativity.

2 marks

Answer

Operator Precedence determines the order in which operators are evaluated in an expression containing multiple operators. Associativity determines the direction of evaluation (left-to-right or right-to-left) for operators with the same precedence level.

b

List out various data types used in c.

3 marks

Answer

The primary data types in C are:

  • Basic types: int, char, float, double
  • Derived types: Arrays, Pointers, Structures, Unions
  • Enumeration type: enum
  • Void type: void
c

What is a user defined function? Give example.

2 marks

Answer

Sign in to view the complete answer paper.

d

How to initialize the elements of an array?

3 marks

Answer

Sign in to view the complete answer paper.

e

Define Void Pointer?

2 marks

Answer

Sign in to view the complete answer paper.

f

Write the syntax of calloc function.

3 marks

Answer

Sign in to view the complete answer paper.

g

Write any two differences between text and binary file.

2 marks

Answer

Sign in to view the complete answer paper.

h

Define self-referential structure?

3 marks

Answer

Sign in to view the complete answer paper.

i

What is sorting?

2 marks

Answer

Sign in to view the complete answer paper.

j

Give the importance of sorting.

3 marks

Answer

Sign in to view the complete answer paper.

PART - B

210 marks
a

Define variable. List the rules for declaring variable. Give valid and invalid examples.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to find the Pascal’s triangle for the given input.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Write a C program to display Fibonacci series using while loop.

5 marks

Answer

Sign in to view the complete answer paper.

b

Describe Switch statement. Write c program to read month number and display month name using switch case.

5 marks

Answer

Sign in to view the complete answer paper.

4

How to pass parameters to functions? Explain each with an example.

10 marks

Answer

Sign in to view the complete answer paper.

OR
5

Differentiate iterative functions and recursive function and write the recursive function to find the solution to towers of Hanoi problem.

10 marks

Answer

Sign in to view the complete answer paper.

6

With suitable examples, explain different dynamic memory management functions in C.

10 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

How can you declare pointer variable? Differentiate a variable address and variable value. How to access variable value using pointers? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write c program to reverse the given string without using strrev() function.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Write a program for addition of two complex numbers by passing structures to a function.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain about the bit field in C.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Write a ‘C’ program to read the content of source file and convert all upper case letters in source file into lower case letters.

5 marks

Answer

Sign in to view the complete answer paper.

b

What are the file status functions? Explain their usage with a sample ‘C’ program.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Write program to implement bubble sort.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the procedure to insert a node into single linked list.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Describe the implementation of binary search.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write in detailed note on queue data structure.

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of COMPUTER PROGRAMMING from JNTUH for B.Tech ECE I Year I, March/April - 2023, R15.

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

Other papers in COMPUTER PROGRAMMING

Loading Question Papers

Fetching data from database...