JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech I C PROGRAMMING AND DATA STRUCTURES Previous Question Paper (March/April - 2023 - R22)
Note: This question paper contains two parts A and B. Part- A for 10 marks, 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
What is the range of values a float data type takes?
Answer
A float data type typically ranges from approximately 3.4E-38 to 3.4E+38, occupying 4 bytes of memory.
How many bytes does unsigned int take?
Answer
An unsigned int typically takes 4 bytes in modern 32-bit and 64-bit C compilers.
What are actual parameters?
Answer
Sign in to view the complete answer paper.
Why do we use continue statement?
Answer
Sign in to view the complete answer paper.
Which symbol is used to access the value a pointer is pointing to?
Answer
Sign in to view the complete answer paper.
List string input functions.
Answer
Sign in to view the complete answer paper.
Give syntax for defining a structure.
Answer
Sign in to view the complete answer paper.
What is the advantage and disadvantage of union?
Answer
Sign in to view the complete answer paper.
What is queue?
Answer
Sign in to view the complete answer paper.
What is the advantage of singly linked list?
Answer
Sign in to view the complete answer paper.
Part B
What are input and output statements in C?
Answer
Sign in to view the complete answer paper.
List and explain arithmetic operators in C.
Answer
Sign in to view the complete answer paper.
For primitive data types in C, give format specifier, range of values and memory it takes.
Answer
Sign in to view the complete answer paper.
Write a program to find whether a given matrix is symmetric or not.
Answer
Sign in to view the complete answer paper.
Distinguish between while and do-while statements.
Answer
Sign in to view the complete answer paper.
Write a C program which uses a recursive function to find fibonacci series of given number.
Answer
Sign in to view the complete answer paper.
List and explain string manipulation functions.
Answer
Sign in to view the complete answer paper.
What is pointer to pointer? In which situations do we need them?
Answer
Sign in to view the complete answer paper.
What are dangling pointers? Why do they occur?
Answer
Sign in to view the complete answer paper.
Write a program to merge the contents of file A and file B into file C. File A has even numbers between 1 to 20 and file B has odd numbers between 1 to 20.
Answer
Sign in to view the complete answer paper.
Create a union called “student” having student name, roll number, branch and marks for three subjects. Write a program to compute grade of the student based on three marks.
Answer
Sign in to view the complete answer paper.
Simulate bubble sort on following data and write a C program for it.
3, 6, 8, 9, 1, 2, 22, 11, 5
Answer
Sign in to view the complete answer paper.
What are stacks? What operations can be performed on stack? What are the applications of stack?
Answer
Sign in to view the complete answer paper.