0% found this document useful (0 votes)
23 views9 pages

C & DS Unit Wise BTL Question Bank

The document is a comprehensive question bank for a C and Data Structures course, organized by units and parts, detailing various questions categorized by Bloom's Taxonomy levels. It covers fundamental concepts such as system software, data types, algorithms, pointers, structures, and sorting algorithms. The questions are designed to assess students' understanding and application of C programming and data structures.

Uploaded by

jatavathamarji90
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views9 pages

C & DS Unit Wise BTL Question Bank

The document is a comprehensive question bank for a C and Data Structures course, organized by units and parts, detailing various questions categorized by Bloom's Taxonomy levels. It covers fundamental concepts such as system software, data types, algorithms, pointers, structures, and sorting algorithms. The questions are designed to assess students' understanding and application of C programming and data structures.

Uploaded by

jatavathamarji90
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

C&DS Subject Question Bank

Questions BTL Course


Sl. No.
level Outcome
Unit - I

Part – A (2 Marks )

Define system software and application software and give examples


1 L1 CO 1
for each one. DEC-16-JNTUH[R16]
List different components of computer hardware. L1 CO 1
2
DEC-16-JNTUH[R13], NOV-20-JNTUH[R16]
Write the steps in creating and running of a C program. L1 CO 1
3
DEC-16- JNTUH[R16], DEC-16-JNTUH[R13]
4 Define flowchart? MAY-17-JNTUH[R16] L1 CO 1

5 List and define storage classes. NOV-17-JNTUH[R16] L1 CO 1

List different primary data types used in C language.


6 L1 CO 1
DEC-18- JNTUH[R18]
What is the difference between compiler and interpreter? L1 CO 1
7
DEC-16-JNTUH[R13]
Define variable and constants with examples.MAY-17- L1 CO 1
8
JNTUH[R16]
What are different ways of commenting the statements in C L1 CO 1
9
programming? MAY-19-JNTUH[R16]
Give the comparison of Global and local variables. L1 CO 1
10
JAN-20- JNTUH[R18]
Part – B (5 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

7 Explain Pseudocode with Examples. NOV-17-JNTUH[R16] L1 CO 1

Write short notes on the following:


8 L1 CO 1
a) Operating System b)Compiler c)Interpreter d)Linker e)Loader
Write the rules for writing a variable name.
9 L2 CO 1
MAY-17-JNTUH[R16], DEC-18-JNTUH[R18]
Explain about different storage classes with examples. Discuss their L3 CO 1
10
uses and scope. JAN-20-JNTUH[R16], JUN-19-JNTUH[R18]
Unit – II

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

8 Define type conversion in C. L1 CO 2

What is the difference between pre-increment and post-increment L2 CO 2


9
operation? JAN-20-JNTUH[R16]
What is the output of the following code, Justify your answer?
int main( )
{
10 L1 CO 2
int x=1, y=5;
printf(“%d”,+
+x+y); return 0;
}
Define string and list various string I/O functions
11.
Write the syntax for function declaration, function call and function
12.
definition in C? NOV-17-JNTUH[R16]
What is a recursion? List out the limitations of recursion.
13.
DEC-16-JNTUH[R16]
Differentiate between call by value and call by reference
14.
MAY-19- JNTUH[R16]
Explain about Actual and Formal parameters DEC-18-JNTUH[R18]
15.
Define function. List various library functions in C.
16.
JAN-20-JNTUH[R18]
What is an array and list various types of arrays.JUN-19-
17.
JNTUH[R18]
Distinguish between built – in(library) and user – defined
18.
functions.JAN-20- JNTUH[R16]
Write the syntax for two dimensional arrays declaration and
19.
initialization with example.
In what way do-while Loop differs from while Loop. Explain with
20. example programs.
Part – B (5 Marks )

Explain different arithmetic operators available in C language with L1 CO 2


1
example. NOV-17-JNTUH[R16]
What is associativity? Explain the operator precedence. L2 CO 2
2
DEC-16-JNTUH[R16]
Write a C program, which takes two integer operands and one
3 operator from the user, performs the operation and then prints the L2 CO 2
result. (Consider the operators +,-,*, /, %and use Switch Statement)
Write a C program to generate all the prime numbers between 1 and
4 n, where n is a value supplied by the user. L2 CO 2

Write a C program to find the largest and smallest among three L2 CO 2


5
numbers.
Explain different types of operators available in C language with L1 CO 2
6
examples DEC-18-JNTUH[R18]
Explain about bitwise operators with suitable programming L2 CO 2
7
example. MAY-18-JNTUH[R16]
8 Write a C program to find the factorial of a given number. L2 CO 2

Explain about the iterative statements with examples.MAY-17- L2 CO 2


9
JNTUH[R16]
Explain about Conditional branching(if,if-else,switch) Statements L2 CO 2
10
JAN- 20-JNTUH[R18]
Unit – III

Part – A (2 Marks )
1 What is meant by array of pointers? When it will be useful? (Dec L1 CO 3
2016[R16])

Explain about arrays of pointers with examples. (Apr 2016[R13] )

Distinguish between string and character. (Dec 2016[R16] ) L1 CO 3


2
Explain the concept of Enumerated type. Dec 2016[R16] )
Explain enumerated type, structures and unions with example. (May /Jun
2017[R13], May 17[R15] )
Write the syntax for enumerated data types. Give example. (May 17[R16] )
3 Write a short note on enumerations. (Dec 2018[R16] )
Explain the Enumerated data types with example. (Dec 2017[R16], Dec
2018[R18] )
Is enumeration a derived data type? Justify your answer with suitable L1 CO 3
example. (May 2018[R16] )
Write the difference between array and pointer? Give example to Dec
lare one, two and multi dimensional arrays. (May /Jun 2017[R13], May
4.
17[R15] ) L1 CO 3

Define a pointer. What is a use of pointer with example? (May /Jun


2017[R13], May 17[R15] )
5.
How to use pointers? (Dec 2018[R13] )
L1 CO 3
What is the purpose of pointers? (Aug 2017[R16] )
6. List out various string handling functions. L1 CO 3

Distinguish between structures and functions. (May /Jun 2017[R13], L1 CO 3


7. May 17[R15] )
Give brief information about self referential structure. (May 17[R16] ) L1 CO 3
8.
List the input/output functions for strings. (Aug 2017[R16] )

What are the string functions? Explain. (Apr 2018[R16] )


9.
Illustrate the character input/output functions with suitable examples.
(May 2018[R13], May 2018[R15] ) L1 CO 3

Write short notes on typedef. (May 17[R16] ) L1 CO 3


10.
Part – B (5/7 Marks ) L1 CO 3

1. What are the advantages and drawbacks of pointers? (Dec 2016[R16],


May 17[R16]
What are the string manipulation functions? Explain their usage. (Dec
2016[R16], May /Jun 2017[R13], May 17[R15] )

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

10. Write a short note on Pointer to Pointer. (Dec 2018[R13] )

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 )

Write brief notes on unions. DEC-16-JNTUH[R16] L1 CO 4


1.
Explain fseek() function with example. (Dec 2018[R18]) L1 CO 4
2.
Explain enum and typedef with examples NOV-17-JNTUH[R16] L1 CO 4
3.
What is a system created stream? Give examples. L1 CO 4
4.
Define structure with example.NOV-17-JNTUH[R16] L1 CO 4
5.

6. Write the concept of a file. (Apr 2018[R16] ) L1 CO 4

Explain about file status functions. (Apr 2018[R16] ) L1 CO 4


7.
What are self-referential structures? Give an example. JAN-20- L1 CO 4
8.
JNTUH[R18]
Give any two differences between structure and union. L1 CO 4
9.
What is meant by a text file? (Dec 2016[R16] ) L1 CO 4
10.
Part – B (5/7 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

Explain about declaration, initialization and accessing of structures. L2 CO 4


4.
DEC-16-JNTUH[R16]
Discuss about self referential structures with examples MAY-17- L2 CO 4
5.
JNTUH[R16]
Differentiate between structure and union. Give examples for each
6. NOV-17-JNTUH[R16] 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

8. Explain in detail about passing structures to functions. L1 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] )

Explain about declaration, initialization and accessing of unions.


10. DEC-16-JNTUH[R16] L2 CO 4

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

What is binary search? (Jul 2016[R13]JNTUA)

4.
How binary search works? (May /Jun 2019[R18] ) L1 CO 5

Explain Selection sort technique with a simple program (May /Jun


5. L1 CO 5
2017[R15],May /Jun[R13] )
Explain Linear and binary search methods. (May /Jun 2017[R15],May
6. /Jun[R13] ) L1 CO 5

What are the disadvantages of bubble sort? L1 CO 5


7.
Perform Linear search on the following number
8. {20,5,30,10,65,3,90} L1 CO 5

What is linear search? L1 CO 5


9.
List various file opening modes. L1 CO 5
10.
What is a data structure?
11.

List some common data structures.


12.

13. Differentiate linear and non-linear data structure.


What are the ways of implementing linked list?
14
List down the applications of List.
15.
Part – B (5/7 Marks )

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

Sort the following 10 elements using bubble sort technique. Write


2. the algorithm for same.85 53 96 35 27 87 37 12 90 23
(May 2018[R13] ) L2 CO 5

Implement Linear Search Technique to search element 23 on the


3. L2 CO 5
following 22, 11,66,44,99,55,88,23. (May 2018[R15] )
Explain binary search with an example (May 2018[R15] ) L3 CO 5
4.
Explain and write an algorithm for insertion sorting? Trace with an
example. ( Nov-2018,R10,JNTU)
5.
L2 CO 5

Apply Bubble Sort on the data 22 11 66 44 99 55 88 (Dec


6. 2018[R15] ) L2 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

Write an algorithm for insertion sort. (May 2018[R10]JNTUK) L1 CO 5


8.
Implement Binary search technique to search 53 in the following
9. elements 12, 15, 18, 20, 22, 36, 39, 40, 46, 53 L2 CO 5

Sort the following sequence of numbers using selection sort 14 18


10. 1 2 9 6 7 3 with a Program. (May 2018[R15] ) L2 CO 5

What are the merits and demerits of array implementation of


11. lists?

What are the operations performed in list?


12.
What are the advantages of linked list?
13.

14. Explain the operations of singly linked lists

15. Explain the operations of stack.

16. Explain the operations of queue

You might also like