SlideShare a Scribd company logo
DS Question Bank
Module1
1. Explain the structure of c-program with example.
2. Define data structures. Explain various types of data structures.
3. What are operators in C? Explain about Managing Input and
output operations.
4. Write about for(), while() and do-while looping and branching
statements in C, discuss with examples.
5. Interpret different string handling functions with example.(any
Five)
6. Explain formatted I/O functions.
Answers: - printf() and scanf() : Students have to write
syntax of the functions and give an example.
7. Explain unformatted I/O functions in C.
Answers: - getchar(), gets(), putchar(), puts(). Each
function with syntax and example.
8. Discuss controls structures in C.
Answers: - if, else-if, switch-case. Explanation with syntax
and example.
9. Discuss looping structures in C.
Answers: - for, while, do-while. Syntax with example.
10. Explain Decision Making and Branching statements.
Module 2
1.How to initialize array and how to declare array in C?
2. Define an array. How do you initialize arrays?
3. Discuss array as ADT.
4.What is one dimensional array & 2 dimension array ? explain with
example.
5. Explain Function in c.
6. What are Built in function and User defined Function in C?
7. What are different ways of passing parameters to function?
Answers: - Call by value, call by address. Explanation with a
programming example.
8. Explain various operations on Strings.
Module 3
1.Explain Pointer arithmetic.
2. Explain Pointer with an example.
3. Describe about structure concept.
4. Explain what is Union with a sample snippet.
5. Describe Nested structures and storage classes in c
6. Explain pre-processor directives.
Module 4
1. List and explain working of stack data structure with example.
2. Define stack. Explain Primitive operations on stack.
3. How will you represents array of stack.
4. Explain about Implementation of stack using array.
5. what are the application of stack.
6. Define recursion. What are the features/characteristics of
recursive functions?
Answers: - Features: every time problem size should be
reducing and there must be at least one non-recursive
terminating condition.
7. Explain infix to post-fix conversion.
Module 5
1.Explain Primitive operation on Queue
2.Explain logical representation queue data structure in detailed with
example.
3. Explain different types of queue.
4.Explain Tower of Hanoi problem.
5. Explain tower of Hanoi problem along with its constraints.
Answers: - Constraints: every time only one disc should be
moved, and smaller disc must be kept on larger disc.
6. Define Queue. Explain operations on Queue.
7. What are the disadvantages of ordinary queue? How do you
overcome it? (ans: circular queue)
8. Explain the concept of priority queues.
9. Explain Meaning and types of Deques.
Programming Questions:
Module 1:
1. Programs involving control structures like–
a. Quadratic equation
b. Area of a triangle
c. Prime numbers generation
d. Finding sum of digits of a number
e. Checking for number palindrome
f. Sine series, cosine series etc.
2. Programs involving arrays like –
a. Sum and average of numbers
b. Matrix addition and multiplication etc.
3. Programs related to passing array to a function.
Module 2:
1. Programs on pointers like –
a. Finding sum and average of numbers using pointers to an
array
b. Passing pointers to function (this is nothing but call by
address)
c. Returning pointers from function
d. Pointers to functions
2. Programs on string operations without using built-in string
functions –
a. Finding length of a string
b. Concatenation of two strings
c. Copy a string to another string
d. Comparing two strings etc
Module 3:
1. Programs on sorting
a. Selection sort
b. Bubble sort
c. Insertion sort
d. Quick sort
2. Programs on searching
a. Binary search
b. Linear search
Module 4:
1. Programs on –
a. Stack implementation
b. Infix to postfix conversion
c. Evaluation of postfix expression
d. Fibonacci series
Module 5:
1.Programs on –
a. Factorial
b. GCD
c. Tower of Hanoi
2. Queue implementation i. Circular queue

More Related Content

Similar to Question Bank DS

Oop sample ktu
Oop sample ktuOop sample ktu
Oop sample ktu
ktuonlinenotes
 
Pcd201516
Pcd201516Pcd201516
Pcd201516
sheikhmoidin
 
7th Semester (June; July-2015) Computer Science and Information Science Engin...
7th Semester (June; July-2015) Computer Science and Information Science Engin...7th Semester (June; July-2015) Computer Science and Information Science Engin...
7th Semester (June; July-2015) Computer Science and Information Science Engin...
BGS Institute of Technology, Adichunchanagiri University (ACU)
 
Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7ashhadiqbal
 
Model questions-b.sc .csit-6th-sem
Model questions-b.sc .csit-6th-semModel questions-b.sc .csit-6th-sem
Model questions-b.sc .csit-6th-sem
NayanBakhadyo
 
FDS-CS8393 BME MODEL QP2.doc
FDS-CS8393 BME MODEL QP2.docFDS-CS8393 BME MODEL QP2.doc
FDS-CS8393 BME MODEL QP2.doc
jaba kumar
 
SMU BSC IT FALL / SUMMER 2013 SOLVED ASSIGNMENTS
SMU BSC IT FALL / SUMMER 2013 SOLVED ASSIGNMENTSSMU BSC IT FALL / SUMMER 2013 SOLVED ASSIGNMENTS
SMU BSC IT FALL / SUMMER 2013 SOLVED ASSIGNMENTS
smumbahelp
 
C basic questions&ansrs by shiva kumar kella
C basic questions&ansrs by shiva kumar kellaC basic questions&ansrs by shiva kumar kella
C basic questions&ansrs by shiva kumar kella
Manoj Kumar kothagulla
 
Coursebreakup
CoursebreakupCoursebreakup
CoursebreakupPCTE
 
Coursebreakup
CoursebreakupCoursebreakup
CoursebreakupPCTE
 
C++ and Data Structure.ppt
C++ and Data Structure.pptC++ and Data Structure.ppt
C++ and Data Structure.ppt
Rich Alex
 
Prelim Project OOP
Prelim Project OOPPrelim Project OOP
Prelim Project OOP
Dwight Sabio
 
Computer programming laboratory manual for b.tech
Computer programming laboratory manual for b.techComputer programming laboratory manual for b.tech
Computer programming laboratory manual for b.tech
hellogopinadh
 
Database structure Structures Link list and trees and Recurison complete
Database structure Structures Link list and trees and Recurison complete  Database structure Structures Link list and trees and Recurison complete
Database structure Structures Link list and trees and Recurison complete
Adnan abid
 
Pune University MCA [Management] 2020-Sample Questions
Pune University MCA [Management] 2020-Sample QuestionsPune University MCA [Management] 2020-Sample Questions
Pune University MCA [Management] 2020-Sample Questions
shailendrashinde9
 
Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7
helpido6
 
CSharp Presentation
CSharp PresentationCSharp Presentation
CSharp Presentation
Vishwa Mohan
 
C, C++ & Data Structures course training institute ameerpet hyderabad
C, C++ & Data Structures course training institute ameerpet hyderabadC, C++ & Data Structures course training institute ameerpet hyderabad
C, C++ & Data Structures course training institute ameerpet hyderabad
Sathya Technologies
 

Similar to Question Bank DS (20)

Oop sample ktu
Oop sample ktuOop sample ktu
Oop sample ktu
 
8th Semester Computer Science (2013-June) Question Papers
8th Semester Computer Science (2013-June) Question Papers8th Semester Computer Science (2013-June) Question Papers
8th Semester Computer Science (2013-June) Question Papers
 
Pcd201516
Pcd201516Pcd201516
Pcd201516
 
7th Semester (June; July-2015) Computer Science and Information Science Engin...
7th Semester (June; July-2015) Computer Science and Information Science Engin...7th Semester (June; July-2015) Computer Science and Information Science Engin...
7th Semester (June; July-2015) Computer Science and Information Science Engin...
 
Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7
 
Model questions-b.sc .csit-6th-sem
Model questions-b.sc .csit-6th-semModel questions-b.sc .csit-6th-sem
Model questions-b.sc .csit-6th-sem
 
FDS-CS8393 BME MODEL QP2.doc
FDS-CS8393 BME MODEL QP2.docFDS-CS8393 BME MODEL QP2.doc
FDS-CS8393 BME MODEL QP2.doc
 
SMU BSC IT FALL / SUMMER 2013 SOLVED ASSIGNMENTS
SMU BSC IT FALL / SUMMER 2013 SOLVED ASSIGNMENTSSMU BSC IT FALL / SUMMER 2013 SOLVED ASSIGNMENTS
SMU BSC IT FALL / SUMMER 2013 SOLVED ASSIGNMENTS
 
141303 qb
141303 qb141303 qb
141303 qb
 
C basic questions&ansrs by shiva kumar kella
C basic questions&ansrs by shiva kumar kellaC basic questions&ansrs by shiva kumar kella
C basic questions&ansrs by shiva kumar kella
 
Coursebreakup
CoursebreakupCoursebreakup
Coursebreakup
 
Coursebreakup
CoursebreakupCoursebreakup
Coursebreakup
 
C++ and Data Structure.ppt
C++ and Data Structure.pptC++ and Data Structure.ppt
C++ and Data Structure.ppt
 
Prelim Project OOP
Prelim Project OOPPrelim Project OOP
Prelim Project OOP
 
Computer programming laboratory manual for b.tech
Computer programming laboratory manual for b.techComputer programming laboratory manual for b.tech
Computer programming laboratory manual for b.tech
 
Database structure Structures Link list and trees and Recurison complete
Database structure Structures Link list and trees and Recurison complete  Database structure Structures Link list and trees and Recurison complete
Database structure Structures Link list and trees and Recurison complete
 
Pune University MCA [Management] 2020-Sample Questions
Pune University MCA [Management] 2020-Sample QuestionsPune University MCA [Management] 2020-Sample Questions
Pune University MCA [Management] 2020-Sample Questions
 
Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7
 
CSharp Presentation
CSharp PresentationCSharp Presentation
CSharp Presentation
 
C, C++ & Data Structures course training institute ameerpet hyderabad
C, C++ & Data Structures course training institute ameerpet hyderabadC, C++ & Data Structures course training institute ameerpet hyderabad
C, C++ & Data Structures course training institute ameerpet hyderabad
 

Recently uploaded

ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 

Recently uploaded (20)

ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 

Question Bank DS

  • 1. DS Question Bank Module1 1. Explain the structure of c-program with example. 2. Define data structures. Explain various types of data structures. 3. What are operators in C? Explain about Managing Input and output operations. 4. Write about for(), while() and do-while looping and branching statements in C, discuss with examples. 5. Interpret different string handling functions with example.(any Five) 6. Explain formatted I/O functions. Answers: - printf() and scanf() : Students have to write syntax of the functions and give an example. 7. Explain unformatted I/O functions in C. Answers: - getchar(), gets(), putchar(), puts(). Each function with syntax and example. 8. Discuss controls structures in C. Answers: - if, else-if, switch-case. Explanation with syntax and example. 9. Discuss looping structures in C. Answers: - for, while, do-while. Syntax with example. 10. Explain Decision Making and Branching statements. Module 2 1.How to initialize array and how to declare array in C? 2. Define an array. How do you initialize arrays? 3. Discuss array as ADT.
  • 2. 4.What is one dimensional array & 2 dimension array ? explain with example. 5. Explain Function in c. 6. What are Built in function and User defined Function in C? 7. What are different ways of passing parameters to function? Answers: - Call by value, call by address. Explanation with a programming example. 8. Explain various operations on Strings. Module 3 1.Explain Pointer arithmetic. 2. Explain Pointer with an example. 3. Describe about structure concept. 4. Explain what is Union with a sample snippet. 5. Describe Nested structures and storage classes in c 6. Explain pre-processor directives. Module 4 1. List and explain working of stack data structure with example. 2. Define stack. Explain Primitive operations on stack. 3. How will you represents array of stack. 4. Explain about Implementation of stack using array. 5. what are the application of stack. 6. Define recursion. What are the features/characteristics of recursive functions? Answers: - Features: every time problem size should be reducing and there must be at least one non-recursive terminating condition. 7. Explain infix to post-fix conversion.
  • 3. Module 5 1.Explain Primitive operation on Queue 2.Explain logical representation queue data structure in detailed with example. 3. Explain different types of queue. 4.Explain Tower of Hanoi problem. 5. Explain tower of Hanoi problem along with its constraints. Answers: - Constraints: every time only one disc should be moved, and smaller disc must be kept on larger disc. 6. Define Queue. Explain operations on Queue. 7. What are the disadvantages of ordinary queue? How do you overcome it? (ans: circular queue) 8. Explain the concept of priority queues. 9. Explain Meaning and types of Deques. Programming Questions: Module 1: 1. Programs involving control structures like– a. Quadratic equation b. Area of a triangle c. Prime numbers generation d. Finding sum of digits of a number e. Checking for number palindrome f. Sine series, cosine series etc. 2. Programs involving arrays like – a. Sum and average of numbers
  • 4. b. Matrix addition and multiplication etc. 3. Programs related to passing array to a function. Module 2: 1. Programs on pointers like – a. Finding sum and average of numbers using pointers to an array b. Passing pointers to function (this is nothing but call by address) c. Returning pointers from function d. Pointers to functions 2. Programs on string operations without using built-in string functions – a. Finding length of a string b. Concatenation of two strings c. Copy a string to another string d. Comparing two strings etc Module 3: 1. Programs on sorting a. Selection sort b. Bubble sort c. Insertion sort d. Quick sort 2. Programs on searching a. Binary search b. Linear search Module 4: 1. Programs on –
  • 5. a. Stack implementation b. Infix to postfix conversion c. Evaluation of postfix expression d. Fibonacci series Module 5: 1.Programs on – a. Factorial b. GCD c. Tower of Hanoi 2. Queue implementation i. Circular queue