JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

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

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

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

Part-A is a compulsory question. Part-B consists of ten questions (numbered from 2 to 11). 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

1
Answer the following sub-questions:
10 marks
a
Define variable. Write the rules to be followed to declare a variable.
1 marks

Answer

A variable is a named memory location used to store data that can be modified during program execution. Rules for declaration: it must start with a letter or underscore, can contain letters, digits, and underscores, cannot be a C keyword, and is case-sensitive.
b
List the data types in C. What is the size of each of these data types?
1 marks

Answer

Primary data types include: int (2 or 4 bytes), char (1 byte), float (4 bytes), double (8 bytes), and void (0 bytes).
c
List out different decision statements or conditional statements in C.
1 marks

Answer

Sign in to view the complete answer paper.

d
Define Loop. Write different forms of loops in C.
1 marks

Answer

Sign in to view the complete answer paper.

e
Mention the advantages and disadvantages of an array.
1 marks

Answer

Sign in to view the complete answer paper.

f
What is an array? Explain syntax to declare on dimensional array using example.
1 marks

Answer

Sign in to view the complete answer paper.

g
How many ways we can allocate a memory in C?
1 marks

Answer

Sign in to view the complete answer paper.

h
What is Dynamic memory allocation?
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 insertion sort?
1 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a
Write an algorithm for finding the maximum of two numbers and trace the algorithm to depict the logic with a sample input.
5 marks

Answer

Sign in to view the complete answer paper.

b
List and explain the steps involved in execution of a C program.
5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a
List and explain the various symbols used in flowchart design with a neat diagram.
5 marks

Answer

Sign in to view the complete answer paper.

b
Make a comparison between the compiler and an interpreter.
5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a
Explain the difference between break, goto and continue statements with an example.
5 marks

Answer

Sign in to view the complete answer paper.

b
Summarize various operators available in C.
5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a
Differentiate between while and do-while statements with example.
5 marks

Answer

Sign in to view the complete answer paper.

b
What is an expression? Explain different categories of expressions.
5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a
Write a program to find the string length by using inbuilt string functions.
5 marks

Answer

Sign in to view the complete answer paper.

b
What are the advantages of functions?
5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a
Explain the methods of passing data to a function with examples.
5 marks

Answer

Sign in to view the complete answer paper.

b
Discuss about String manipulation functions.
5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a
Describe the use of pointers in self-referential structures.
5 marks

Answer

Sign in to view the complete answer paper.

b
Elaborate the command line arguments.
5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a
List and explain the standard C pre-processors.
5 marks

Answer

Sign in to view the complete answer paper.

b
Give the syntax of malloc() and calloc() functions and explain its need.
5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a
How the structure elements can be passed to functions? Explain with an example program.
5 marks

Answer

Sign in to view the complete answer paper.

b
Explain the insertion sort with an example program.
5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a
Explain the difference between structure and union with an example.
5 marks

Answer

Sign in to view the complete answer paper.

b
Illustrate selection sort with an example.
5 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 EIE I Year I-I, March/April - 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...