This document is an examination paper for B. Tech I Year I Semester students at Jawaharlal Nehru Technological University Hyderabad, focusing on C Programming and Data Structures. It consists of two parts: Part-A with compulsory questions and Part-B with ten questions from which students must answer five. The exam covers various topics including data types, control statements, string manipulation, pointers, file handling, and sorting algorithms.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
23 views2 pages
MarchApril 2023
This document is an examination paper for B. Tech I Year I Semester students at Jawaharlal Nehru Technological University Hyderabad, focusing on C Programming and Data Structures. It consists of two parts: Part-A with compulsory questions and Part-B with ten questions from which students must answer five. The exam covers various topics including data types, control statements, string manipulation, pointers, file handling, and sorting algorithms.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
Code No: 181AE R22
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
B. Tech I Year I Semester Examinations, March/April - 2023 C PROGRAMMING AND DATA STRUCUTRES JN (Common to CE, ME, AE, BT, MIE, PCE) Time: 3 Hours Max. Marks: 60
Note: This question paper contains two parts A and B.
TU 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 H 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. U PART- A (10 Marks) se 1.a) What is the range of values a float data type takes? [1] b) How many bytes does unsigned int take? [1] d c) What are actual parameters? [1] d) Why do we use continue statement? [1] e) Which symbol is used to access the value a pointer is pointing to? [1] pa f) List string input functions. [1] g) Give syntax for defining a structure. [1] h) What is the advantage and disadvantage of union? [1] pe i) What is queue? [1] j) What is the advantage of singly linked list? [1]
PART-B rs (50 Marks)
2.a) What are input and output statements in C?
20 b) List and explain arithmetic operators in C. [5+5] OR 3. For primitive data types in C, give format specifier, range of values and memory it takes. [10] 23 4. Write a program to find whether a given matrix is symmetric or not. [10] OR 5.a) Distinguish between while and do-while statements. b) Write a C program which uses a recursive function to find fibonacci series of given number. [5+5] 6. List and explain string manipulation functions. [10] OR 7.a) What is pointer to pointer? In which situations do we need them? b) What are dangling pointers? Why do they occur? [5+5] JN 8 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. [10] TU OR 9 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. [10] H 10. Simulate bubble sort on following data and write a C program for it. [10] 3,6,8,9,1,2,22,11,5 U OR 11. What are stacks? What operations can be performed on stack? What are the se applications of stack? [10] d --ooOoo-- pa pe rs 20 23