JNTU

JNTU B.Tech I COMPUTER PROGRAMMING Previous Question Paper (December - 2017 - R13)

B.Tech | I | I-I | R13 | December - 2017

Answer PaperPaper Code: 111AFMaximum Marks: 75Time: 3 hours

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

125 marks
a

Differentiate between compiler and interpreter.

2 marks

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.

b

What is an algorithm? What is its role in program development?

3 marks

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.

c

How many values can be returned by a function?

2 marks

Answer

Sign in to view the complete answer paper.

d

Why is function known as a derived data type?

3 marks

Answer

Sign in to view the complete answer paper.

e

What is dereference type?

2 marks

Answer

Sign in to view the complete answer paper.

f

List the applications of pointers.

3 marks

Answer

Sign in to view the complete answer paper.

g

What is the use of typedef?

2 marks

Answer

Sign in to view the complete answer paper.

h

What is the difference between binary file and text file?

3 marks

Answer

Sign in to view the complete answer paper.

i

What are the operations on stack?

2 marks

Answer

Sign in to view the complete answer paper.

j

Compare array with linked list.

3 marks

Answer

Sign in to view the complete answer paper.

PART-B

210 marks
a

Demonstrate the usage of relational operators.

5 marks

Answer

Sign in to view the complete answer paper.

b

Using while loop write a program to read 10 numbers from user and display their sum.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

What is a data type? Discuss the four standard data types of C language.

5 marks

Answer

Sign in to view the complete answer paper.

b

Construct a flowchart to identify largest number among the three given numbers.

5 marks

Answer

Sign in to view the complete answer paper.

4

Discuss the advantages of using functions in problem solving. With the help of suitable examples illustrate inter function communication.

10 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

How to declare and initialize a multi dimensional array?

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to find sum of squares of an array element.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Can one variable have many pointers? Write a program to justify your answer.

4 marks

Answer

Sign in to view the complete answer paper.

b

What operators are applicable to pointer variables? Give example expressions.

3 marks

Answer

Sign in to view the complete answer paper.

c

Write a function to swap two numbers using pointer variables to these numbers.

3 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Write a program to check whether a given string is a palindrome or not.

5 marks

Answer

Sign in to view the complete answer paper.

b

Discuss the library functions for string to data conversion.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

What is a structure? Define a structure and explain the two methods of accessing structure variables.

5 marks

Answer

Sign in to view the complete answer paper.

b

In which situation a union is preferred over union.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Write a program to transfer the contents of a file in to another file using file handling concepts.

5 marks

Answer

Sign in to view the complete answer paper.

b

How can errors be handled in file programs?

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Write an algorithm for binary search.

5 marks

Answer

Sign in to view the complete answer paper.

b

Perform insertion sort (step-by-step) and arrange the following number in ascending order: {23 45 25 67 89 37 12 90 32 19}

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Write a program to implement a queue using arrays.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is an queue? Compare it with dequeue.

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of COMPUTER PROGRAMMING from JNTU for B.Tech AG I I-I, December - 2017, R13.

For the question paper without answers, switch to the Question Paper tab.

Other papers in COMPUTER PROGRAMMING

Loading Question Papers

Fetching data from database...