JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech I Year C PROGRAMMING AND DATA STRUCTURES Previous Question Paper (September - 2023 - 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. Part-B consists of ten questions (numbered from 2 to 11) carrying 10 marks each. The student should answer five questions from Part-B.
Part A
What is an identifier?
Answer
An identifier is a user-defined name given to program elements such as variables, functions, arrays, structures, or labels to uniquely distinguish them within the program.
What is a statement in c?
Answer
A statement is a complete instruction to the computer that performs a specific action, such as declaring a variable, performing a calculation, or controlling the flow of execution, and is typically terminated by a semicolon (;).
Write a C program to find greatest of two numbers.
Answer
Sign in to view the complete answer paper.
When do you use “continue” statement?
Answer
Sign in to view the complete answer paper.
How do you create a “pointer to pointer” in C?
Answer
Sign in to view the complete answer paper.
How do you pass an array to a function?
Answer
Sign in to view the complete answer paper.
What is the significance of typedef?
Answer
Sign in to view the complete answer paper.
List the standard library functions for files.
Answer
Sign in to view the complete answer paper.
Give array representation of stack.
Answer
Sign in to view the complete answer paper.
What is the time complexity of linear search method?
Answer
Sign in to view the complete answer paper.
Part B
Write about precedence and associativity of operators.
Answer
Sign in to view the complete answer paper.
Write a c program to convert an integer to float.
Answer
Sign in to view the complete answer paper.
Which basic data types are supported by c? What are their size in terms of bytes? How are they declared? Explain with examples.
Answer
Sign in to view the complete answer paper.
Write a program to print below sequence:
1 2 3 4 5 6 7 8 9 10
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 perform an arithmetic operation using switch statement.(read the operator and operands from console)
Answer
Sign in to view the complete answer paper.
Write a program to find whether a given string is palindrome or not.
Answer
Sign in to view the complete answer paper.
What is array of pointers? In which situations is it useful?
Answer
Sign in to view the complete answer paper.
Write a program to sort the characters in given string alphabetically.
Answer
Sign in to view the complete answer paper.
What are the applications of pointer?
Answer
Sign in to view the complete answer paper.
Write a program to copy the contents of one file to another file.
Answer
Sign in to view the complete answer paper.
What is the difference between structure and union? Illustrate with example.
Answer
Sign in to view the complete answer paper.
What are the application of stacks?
Answer
Sign in to view the complete answer paper.
Write a C program for binary search.
Answer
Sign in to view the complete answer paper.
Simulate insertion sort on following data: 4,5,3,2,7,8,9,11
Answer
Sign in to view the complete answer paper.
What is a queue? Give linked representation of a queue. What operations can be performed on queue.
Answer
Sign in to view the complete answer paper.