cds questions
cds questions
___________________
PART-B (5 x 14 = 70 Marks)
Answer all questions
12. (a) Explain about the various branching statements with syntax,
flowchart and examples. (14)
(or)
(b) (i) Describe the types of looping statements with syntax,
flowchart and examples. (9)
(ii) Give the program for matrix addition (2D- Array). (5)
15. (a) Write a C program to perform bubble sort with an example (14)
(or)
(b) Write a C program to perform linear search with an
example. (14)
Question types:
Define / What is?
Types of:
Difference between:
Rules or algorithm
1. Naming identifiers.
2. Control statements
3. Infix to postfix
4. Evaluation of postfix
5. Bubble sort
6. Linear search
7. Binary search
8. Tree traversals
1. Pointers
2. Dynamic memory allocation
3. Linked list
4. Flowchart
5. Algorithm
6. Functions
7. recursion
137- Government Polytechnic College, Gandharvakkottai.
Department of Computer Engineering
Odd Semester (2023-2024)
4052330- C Programming & Data Structures
Important Questions
3 marks:
Unit –I
Unit II
1. Define arrays Give the syntax to declare and initialize arrays.(1D/2D/3D) 2.39
2. What are decision making/conditional/branching/ control statements? (syntax & flowchart)
2.01
3. What are the rules for control statements? 2.07
4. What are unconditional branching statements. (goto break conitnue) 2.15
5. What are looping statements? 2.16 (syntax & flowchart)
6. Defne strings. How to declare and initialize it?
7. List some string handling functions? 2.66
8. List some built in functions. 2.77
9. Define functions and its advantages. 2.87
10. Define return statement 2.89
11. What are formal and actual arguments- 2.92
12. What is call by value and call by reference 2.93
13. Define recursion. 2.107 advantages and disadvantages.
Unit II
1. Give a program using structures to print the details of students to print their total. Notes/ 3.10 /
Ex. No. 5 in C & DS Lab Manual
2. Explain pointer usage and arithmetic with an example program. Notes / 3.33
3. Describe the command line arguments with a sample program. 3.55
4. Depict the different types of data structures along with the operations performed on it. 4.05, 4.07
5. What are the three types of expressions? Give the algorithm to evaluate a postfix expression
using stack. 4.20, Notes / 4.28
6. Algorithm to convert infix to postfix with example.Notes/ 4.23
7. Give the approaches to design an algorithm.4.08
8. Bubble sort example and algorithm program 5.21
9. Linear search- algorithm example program. 5.31
10. Binary search- algorithm exampe program. 5.33
11. What are the three types of tree traversal? 5.14