JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech I Year C PROGRAMMING AND DATA STRUCTURES Previous Question Paper (January/February - 2024 - R22)
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
What is computer language?
Answer
A computer language is a formal system of rules, syntax, and vocabulary used by humans to provide instructions to a computer to perform specific tasks or computations.
What is an identifier?
Answer
An identifier is a user-defined name given to program elements such as variables, functions, arrays, or structures to uniquely identify them within a program.
Justify given statement, “array is static data structure”.
Answer
Sign in to view the complete answer paper.
Give any two array applications.
Answer
Sign in to view the complete answer paper.
What is dangling pointer?
Answer
Sign in to view the complete answer paper.
How to read a character from console?
Answer
Sign in to view the complete answer paper.
What are text streams?
Answer
Sign in to view the complete answer paper.
How do you access structure elements?
Answer
Sign in to view the complete answer paper.
What are queue operations?
Answer
Sign in to view the complete answer paper.
What is abstract data type?
Answer
Sign in to view the complete answer paper.
Part B
What are primitive data types? Explain about each data type in detail with examples.
Answer
Sign in to view the complete answer paper.
What is bitwise operator? Explain each bitwise operator with example and write a C program to illustrate use of bitwise operators.
Answer
Sign in to view the complete answer paper.
Write a C program to print below data: 1 23 456 78910
Answer
Sign in to view the complete answer paper.
Distinguish between if-else and switch statement.
Answer
Sign in to view the complete answer paper.
Write a recursive function to find factorial of given number.
Answer
Sign in to view the complete answer paper.
Write a C program to find sum of digits of a given number.
Answer
Sign in to view the complete answer paper.
What is pointer to a pointer? How is it created? In which situations we create a pointer to pointer?
Answer
Sign in to view the complete answer paper.
What are memory allocation functions? Explain them.
Answer
Sign in to view the complete answer paper.
List and explain string manipulation functions with examples.
Answer
Sign in to view the complete answer paper.
Write a program to merge the contents of two files.
Answer
Sign in to view the complete answer paper.
Write a C program which uses a structure to store information about 10 students and display the contents of those students whose branch is “cse”.
Answer
Sign in to view the complete answer paper.
Give example for type def and enumerated types and explain their significance.
Answer
Sign in to view the complete answer paper.
Simulate selection sort on given data and write C program for it: 3, 2, 6, 7, 1, 8
Answer
Sign in to view the complete answer paper.
What is a stack? Show array and linked representation of stack. What are the applications of stacks?
Answer
Sign in to view the complete answer paper.