JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech I Year C PROGRAMMING FOR ENGINEERS 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 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 a compiler?
Answer
A compiler is a system software that translates high-level programming language code into machine-level language code that can be executed directly by the computer's processor.
What is the purpose of loader?
Answer
The purpose of a loader is to load the executable program from secondary storage into the main memory (RAM) and prepare it for execution by the operating system.
What is the result of 32<<2?
Answer
Sign in to view the complete answer paper.
List the operators at highest precedence level.
Answer
Sign in to view the complete answer paper.
What is an array?
Answer
Sign in to view the complete answer paper.
How many values can be returned by a function?
Answer
Sign in to view the complete answer paper.
What is a macro?
Answer
Sign in to view the complete answer paper.
What is the need of #define?
Answer
Sign in to view the complete answer paper.
Define union.
Answer
Sign in to view the complete answer paper.
What is the time complexity of bubble sort?
Answer
Sign in to view the complete answer paper.
Part B
Explain the need of a flowchart in program development.
Answer
Sign in to view the complete answer paper.
Write an algorithm to find roots of a quadratic equation.
Answer
Sign in to view the complete answer paper.
Differentiate between source code and object code.
Answer
Sign in to view the complete answer paper.
What are the various data types supported by ‘C’?
Answer
Sign in to view the complete answer paper.
Illustrate types of assignment operators.
Answer
Sign in to view the complete answer paper.
Differentiate between logical not operator and bitwise not operator.
Answer
Sign in to view the complete answer paper.
Explain the dangling else problem with an example.
Answer
Sign in to view the complete answer paper.
Write a program to find factorial of a number using while loop.
Answer
Sign in to view the complete answer paper.
What are the disadvantages of recursive functions?
Answer
Sign in to view the complete answer paper.
Write a recursive function to print Fibonacci sequence till n.
Answer
Sign in to view the complete answer paper.
Write a program to find the sum of the primary diagonal of n×n matrix using two dimensional array.
Answer
Sign in to view the complete answer paper.
What are the various ways of passing an array to a function? Give illustrations.
Answer
Sign in to view the complete answer paper.
What is a pointer? What operators are applicable to pointer variables?
Answer
Sign in to view the complete answer paper.
Differentiate between malloc and calloc functions.
Answer
Sign in to view the complete answer paper.
Write a program to append the content of a source file to a target file, read both file names as command line arguments.
Answer
Sign in to view the complete answer paper.
In which situations union is preferred over structure?
Answer
Sign in to view the complete answer paper.
Explain the enumerated data type with an example.
Answer
Sign in to view the complete answer paper.
Make a comparison of bubble sort and insertion sort. Which sorting technique can be recommended for student marks data? Justify your recommendation.
Answer
Sign in to view the complete answer paper.