JNTU
JNTU B.Tech I COMPUTER PROGRAMMING Previous Question Paper (December - 2017 - R13)
Part A is compulsory which carries 25 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit.
PART-A
Differentiate between compiler and interpreter.
Answer
A compiler translates the entire source code into machine code at once before execution, resulting in faster execution but slower compilation. An interpreter translates and executes source code line-by-line, which is slower during execution but allows for immediate feedback and easier debugging.
What is an algorithm? What is its role in program development?
Answer
An algorithm is a step-by-step procedure or a finite set of well-defined instructions designed to solve a specific problem. In program development, it serves as the logical blueprint, helping developers plan the program's structure and logic before writing actual code, ensuring efficiency and correctness.
How many values can be returned by a function?
Answer
Sign in to view the complete answer paper.
Why is function known as a derived data type?
Answer
Sign in to view the complete answer paper.
What is dereference type?
Answer
Sign in to view the complete answer paper.
List the applications of pointers.
Answer
Sign in to view the complete answer paper.
What is the use of typedef?
Answer
Sign in to view the complete answer paper.
What is the difference between binary file and text file?
Answer
Sign in to view the complete answer paper.
What are the operations on stack?
Answer
Sign in to view the complete answer paper.
Compare array with linked list.
Answer
Sign in to view the complete answer paper.
PART-B
Demonstrate the usage of relational operators.
Answer
Sign in to view the complete answer paper.
Using while loop write a program to read 10 numbers from user and display their sum.
Answer
Sign in to view the complete answer paper.
What is a data type? Discuss the four standard data types of C language.
Answer
Sign in to view the complete answer paper.
Construct a flowchart to identify largest number among the three given numbers.
Answer
Sign in to view the complete answer paper.
Discuss the advantages of using functions in problem solving. With the help of suitable examples illustrate inter function communication.
Answer
Sign in to view the complete answer paper.
How to declare and initialize a multi dimensional array?
Answer
Sign in to view the complete answer paper.
Write a program to find sum of squares of an array element.
Answer
Sign in to view the complete answer paper.
Can one variable have many pointers? Write a program to justify your answer.
Answer
Sign in to view the complete answer paper.
What operators are applicable to pointer variables? Give example expressions.
Answer
Sign in to view the complete answer paper.
Write a function to swap two numbers using pointer variables to these numbers.
Answer
Sign in to view the complete answer paper.
Write a program to check whether a given string is a palindrome or not.
Answer
Sign in to view the complete answer paper.
Discuss the library functions for string to data conversion.
Answer
Sign in to view the complete answer paper.
What is a structure? Define a structure and explain the two methods of accessing structure variables.
Answer
Sign in to view the complete answer paper.
In which situation a union is preferred over union.
Answer
Sign in to view the complete answer paper.
Write a program to transfer the contents of a file in to another file using file handling concepts.
Answer
Sign in to view the complete answer paper.
How can errors be handled in file programs?
Answer
Sign in to view the complete answer paper.
Write an algorithm for binary search.
Answer
Sign in to view the complete answer paper.
Perform insertion sort (step-by-step) and arrange the following number in ascending order: {23 45 25 67 89 37 12 90 32 19}
Answer
Sign in to view the complete answer paper.
Write a program to implement a queue using arrays.
Answer
Sign in to view the complete answer paper.
What is an queue? Compare it with dequeue.
Answer
Sign in to view the complete answer paper.