JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech I COMPUTER PROGRAMMING IN C Previous Question Paper (September - 2023 - R16)

B.Tech | I | I-I | R16 | September - 2023

Answer PaperPaper Code: 131ADMaximum Marks: 75Time: 3 Hours

Part A is compulsory, which carries 25 marks. In Part A, answer all questions. 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

What is an algorithm?

2 marks

Answer

An algorithm is a step-by-step finite sequence of well-defined instructions designed to perform a specific task or solve a particular computational problem.

b

Compare between computer software and hardware.

3 marks

Answer

Hardware refers to the physical components of a computer system that can be touched, such as the CPU, memory, and input/output devices. Software consists of the set of programs, data, and instructions that tell the hardware how to perform tasks. While hardware is the tangible machinery, software is the intangible set of instructions that controls it.

c

What is type qualifier?

2 marks

Answer

Sign in to view the complete answer paper.

d

Write the need for a function prototype with an example.

3 marks

Answer

Sign in to view the complete answer paper.

e

Describe typical applications of pointers in developing programs.

2 marks

Answer

Sign in to view the complete answer paper.

f

What is pointer to pointer?

3 marks

Answer

Sign in to view the complete answer paper.

g

Define Union. How to represent an union?

2 marks

Answer

Sign in to view the complete answer paper.

h

Write an example of nested structure.

3 marks

Answer

Sign in to view the complete answer paper.

i

Write the purpose of fseek() with example.

2 marks

Answer

Sign in to view the complete answer paper.

j

Write about different file modes?

3 marks

Answer

Sign in to view the complete answer paper.

PART - B

210 marks
a

Distinguish between While and Do-While looping structures.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program in C to find whether the given year is a leap year or not using while loop.

5 marks

Answer

Sign in to view the complete answer paper.

OR
3

Describe different Relational, Logical, Bitwise and Arithmetic operators available in C- Programming Language.

10 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Write a C-program using function to check whether the given number is prime or not.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write C programs that uses both recursive and non-recursive functions to find the Nth Fibonacci number.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

What do you understand by user-defined functions? Explain need for user-defined functions.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a C Program to transpose a matrix.

5 marks

Answer

Sign in to view the complete answer paper.

6

Write a C program to sort strings using Bubble Sort.

10 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Write a C program to check whether a string is palindrome or not without using built-in function.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is dynamic memory allocation? How does it help in building complex programs? Discuss.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Write a program to add two complex numbers by passing structures to a function.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain Array of structure with an example.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Explain structure within a structure with an example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Discuss command line arguments with examples.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Differentiate between text file and binary file.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a C program to display the contents of the file in reverse order.

5 marks

Answer

Sign in to view the complete answer paper.

OR
11

Write a C program to read a given file, convert first letter of each word into uppercase and copy the contents of converted file into a new file.

10 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of COMPUTER PROGRAMMING IN C from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech ETM I I-I, September - 2023, R16.

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

Other papers in COMPUTER PROGRAMMING IN C

Loading Question Papers

Fetching data from database...