C & DS Unit Wise BTL Question Bank
C & DS Unit Wise BTL Question Bank
Part – A (2 Marks )
List the basic data types, their sizes and range of values supported by L1 CO 1
1
‘C’ language. MAY-17-JNTUH[R16]
What is an algorithm? What are the main steps followed in the
2 development of an algorithm? Write an algorithm for sum of two L1 CO 1
numbers. DEC-16-JNTUH[R16]
Give the block diagram of a computer. Explain functionality of each L1 CO 1
3
component. NOV-17-JNTUH[R16]
What is flow chart? How it is useful in writing the programs?
4 Explain about different symbols in flow chart MAY-19- L2 CO 1
JNTUH[R16]
Explain typical steps for creating, compiling and executing ‘C’ L2 CO 1
5
programs. MAY-17-JNTUH[R16]
6 Explain briefly about structure of a C Program? L1 CO 1
Part – A (2 Marks )
Explain about ternary (or conditional) operator. L1 CO 2
1
DEC 16-JNTUH[R16]
Evaluate the below expression and find the X value
2 L1 CO 2
X=(3*5-(7%2)+9*(3/2))
What is the difference between break and continue statements? L1 CO 2
3
NOV-17- JNTUH[R16], JUN-19-JNTUH[R18]
In which ways does a switch statement differ from an if statement L1 CO 2
4
MAY-19-JNTUH[R16]
If break was not given in the switch statement, what happens? L1 CO 2
5
Explain with example DEC-18-JNTUH[R18]
Differentiate between while loop and do-while loop. MAY-17- L1 CO 2
6
JNTUH[R16]
7 List various operators in C. L1 CO 2
Part – A (2 Marks )
1 What is meant by array of pointers? When it will be useful? (Dec L1 CO 3
2016[R16])
With the help of syntax and example program explain the various string
2.
handling functions (10 Marks) , (May 17[R16] )
L1 CO 3
Explain about self referential structure with a simple C program. (Dec
3.
2016[R16], Apr 2018[R16], Jun2017[R13], May 17[R15] ) L2 CO 3
Explain about String manipulation functions. (Dec 2018[R16], May
4.
2018[R13] ) L2 CO 3
5. Explain briefly about string manipulation functions. (July-2021[R18])
L1 CO 3
Difference between *p++ and p++. May 2019[R16] )
6.
L2 CO 3
7. Distinguish between structure and union. (May /Jun 2019[R16] ) L2 CO 3
Explain about pointers to pointers. Give an example. (Jun2017[R13], May
17[R15], Apr 2018[R16] )
8.
L1 CO 3
Explain the concept of pointer to pointer with an example. (May
9.
2019[R16] ) L2 CO 3
L2 CO 3
Define pointer. How to declare the pointers? MAY-19-JNTUH[R16]
11.
12. Define pointers and state various applications of pointers.
Write a C program to demonstrate swapping of two numbers using
13.
pointers?
Unit – IV
Part – A (2 Marks )
Create a structure called student and the members of the structure are
Stu_Name, Stu_Rno, M1, M2, M3. Create a pointer variable for the
1. structure. Store the values and fetch the values present in the
structure student. (May 17[R16] ) L1 CO 4
What is file pointer? Explain the steps for sequential file operations. L2 CO 4
2.
(Dec 2018[R18]
3. Compare gets() and fgets() with example. Dec 2018[R18] L2 CO 4
Write a program to copy the content of one file to another file. (Dec
2018[R18] )
7.
Write a C program to copy the content from one file to another file using
fseek() L2 CO 4
9. Write a C program to copy contents of one file to another file using file L1 CO 4
names passed as the command Line arguments. (Sep 2017[R16] )
Unit – V
Part – A (2 Marks )
What is binary search? L1 CO 5
1.
How Linear search is different from binary search? L1 CO 5
2.
Compare insertion sort and selection sort. (Dec 2018[R16] )
3.
Differentiate between selection sort and insertion sort. (Dec 2019[R18] ) L1 CO 5
4.
How binary search works? (May /Jun 2019[R18] ) L1 CO 5
Describe insertion sort algorithm and trace steps of insertion sort for
1. sorting the List – 12 19 33 26 29 35 22 37 7. Find the total
number of comparisons made. (Nov-2020[R18]) L1 CO 5
Trace the above program to search 23 in the following elements 12, 15,
7. 18, 20, 22, 36, 39, 40, 46 which is unsuccessful search. (Dec 2016[R15] ) L2 CO 5