SlideShare a Scribd company logo
DATA STRUCTURES
AND ALGORITHMS
STACK IS ALSO CALLED AS
A) Last in first out
B) First in last out
C) Last in last out
D) First in first out
WHICH OF THE FOLLOWING IS TRUE ABOUT THE
CHARACTERISTICS OF ABSTRACT DATA TYPES?
I) IT EXPORTS A TYPE.
II) IT EXPORTS A SET OF OPERATIONS
A) True, False
B) False, True
C) True, True
D) False, False
…………… IS NOT THE COMPONENT OF DATA STRUCTURE.
A) Operations
B) Storage Structures
C) Algorithms
D) None of above
WHICH OF THE FOLLOWING IS NOT THE PART OF ADT
DESCRIPTION?
A) Data
B) Operations
C) Both of the above
D) None of the above
INSERTING AN ITEM INTO THE STACK WHEN STACK IS NOT FULL IS
CALLED …………. OPERATION AND DELETION OF ITEM FORM THE
STACK, WHEN STACK IS NOT EMPTY IS CALLED ………..OPERATION.
A) push, pop
B) pop, push
C) insert, delete
D) delete, insert
……………. IS A PILE IN WHICH ITEMS ARE ADDED AT
ONE END AND REMOVED FROM THE OTHER.
A) Stack
B) Queue
C) List
D) None of the above
………… IS VERY USEFUL IN SITUATION WHEN DATA HAVE TO
STORED AND THEN RETRIEVED IN REVERSE ORDER.
A) Stack
B) Queue
C) List
D) None of the above
WHICH OF THE FOLLOWING DATA STRUCTURE CAN’T STORE THE
NON-HOMOGENEOUS DATA ELEMENTS?
A) Arrays
B) Records
C) Pointers
D) Stacks
A ……. IS A DATA STRUCTURE THAT ORGANIZES DATA SIMILAR TO A
LINE IN THE SUPERMARKET, WHERE THE FIRST ONE IN LINE IS THE FIRST
ONE OUT.
A) Queue linked list
B) Stacks linked list
C) Both of them
D) Neither of them
WHICH OF THE FOLLOWING IS NON-LINER DATA STRUCTURE?
A) Stacks
B) List
C) Strings
D) Trees
IDENTIFY THE DATA STRUCTURE WHICH ALLOWS DELETIONS AT
BOTH ENDS OF THE LIST BUT INSERTION AT ONLY ONE END.
A) Input restricted dequeue
B) Output restricted dequeue
C) Priority queues
D) Stack
WHICH OF THE FOLLOWING DATA STRUCTURE IS NON LINEAR
TYPE?
A) Strings
B) Lists
C) Stacks
D) Graph
TO REPRESENT HIERARCHICAL RELATIONSHIP BETWEEN
ELEMENTS, WHICH DATA STRUCTURE IS SUITABLE?
A) Dequeue
B) Priority
C) Tree
D) Graph
MATCH THE FOLLOWING.
A) COMPLETENESS I) HOW LONG DOES IT TAKE TO FIND A SOLUTION
B) TIME COMPLEXITY II) HOW MUCH MEMORY NEED TO PERFORM THE
SEARCH.
C) SPACE COMPLEXITY III) IS THE STRATEGY GUARANTEED TO FIND THE
SOLUTION WHEN THERE IN ONE.
A) a-iii, b-ii, c-i
B) a-i, b-ii, c-iii
C) a-iii, b-i, c-ii
D) a-i, b-iii, c-ii
THE NUMBER OF COMPARISONS DONE BY SEQUENTIAL SEARCH IS
………………
A) (N/2)+1
B) (N+1)/2
C) (N-1)/2
D) (N+2)/2
IN ……………, SEARCH START AT THE BEGINNING OF THE
LIST AND CHECK EVERY ELEMENT IN THE LIST.
A) Linear search
B) Binary search
C) Hash Search
D) Binary Tree search
STATE TRUE OR FALSE.
I) BINARY SEARCH IS USED FOR SEARCHING IN A SORTED ARRAY.
II) THE TIME COMPLEXITY OF BINARY SEARCH IS O(LOGN).
A) True, False
B) False, True
C) False, False
D) True, True
WHICH OF THE FOLLOWING IS NOT THE INTERNAL SORT?
A) Insertion Sort
B) Bubble Sort
C) Merge Sort
D) Heap Sort
IN A CIRCULAR QUEUE THE VALUE OF R WILL BE ..
A) r=r+1
B) r=(r+1)% [QUEUE_SIZE – 1]
C) r=(r+1)% QUEUE_SIZE
D) r=(r-1)% QUEUE_SIZE
WHICH OF THE FOLLOWING STATEMENT IS TRUE?
I) USING SINGLY LINKED LISTS AND CIRCULAR LIST, IT IS NOT POSSIBLE
TO TRAVERSE THE LIST BACKWARDS.
II) TO FIND THE PREDECESSOR, IT IS REQUIRED TO TRAVERSE THE LIST
FROM THE FIRST NODE IN CASE OF SINGLY LINKED LIST.
A) i-only
B) ii-only
C) Both i and ii
D) None of both
THE ADVANTAGE OF …………….. IS THAT THEY SOLVE THE
PROBLEM IF SEQUENTIAL STORAGE REPRESENTATION. BUT
DISADVANTAGE IN THAT IS THEY ARE SEQUENTIAL LISTS.
A) Lists
B) Linked Lists
C) Trees
D) Queues
WHAT WILL BE THE VALUE OF TOP, IF THERE IS A SIZE OF STACK
STACK_SIZE IS 5
A) 5
B) 6
C) 4
D) None
………… IS NOT THE OPERATION THAT CAN BE PERFORMED
ON QUEUE.
A) Insertion
B) Deletio
C) Retrieval
D) Traversal
THE PROPERTY OF BINARY TREE IS
A) The first subset is called left subtree
B) The second subtree is called right subtree
C) The root cannot contain NULL
D) The right subtree can be empty
STATE TRUE OR FALSE.
I) THE DEGREE OF ROOT NODE IS ALWAYS ZERO.
II) NODES THAT ARE NOT ROOT AND NOT LEAF ARE CALLED AS INTERNAL
NODES.
A) True, True
B) True, False
C) False, True
D) False, False

More Related Content

PDF
ASP.NET With C# (Revised Syllabus) [QP / April - 2014]
PDF
ASP.NET With C# (Revised Syllabus) [QP / April - 2013]
PDF
ASP.NET With C# (Revised Syllabus) [QP / April - 2015]
PDF
[Question Paper] Database Management Systems (Revised Course) [April / 2015]
PDF
Ex 1 3_fsc_part1
DOCX
Chapter 3 heuristic search techniques
PPT
CSC Millionaire
PDF
Geographic Information Systems (April – 2015) [Question Paper | IDOL: Revised...
ASP.NET With C# (Revised Syllabus) [QP / April - 2014]
ASP.NET With C# (Revised Syllabus) [QP / April - 2013]
ASP.NET With C# (Revised Syllabus) [QP / April - 2015]
[Question Paper] Database Management Systems (Revised Course) [April / 2015]
Ex 1 3_fsc_part1
Chapter 3 heuristic search techniques
CSC Millionaire
Geographic Information Systems (April – 2015) [Question Paper | IDOL: Revised...

What's hot (20)

PDF
[Question Paper] Microprocessor and Microcontrollers (Revised Course) [Octobe...
PDF
[Question Paper] Digital Computer Fundamental (Old Course) [April / 2014]
PDF
[Question Paper] Computer Graphics (Revised Course) [April / 2014]
PDF
[Question Paper] Logic and Discrete Mathematics (Revised Course) [April / 2014]
PDF
[Question Paper] Web Technology (Revised Course) [October / 2016]
PDF
[Question Paper] Multimedia (Old Syllabus) [April / 2013]
PDF
[Question Paper] Data Communication and Network Standards (Revised Course) [J...
PDF
[Question Paper] Object Oriented Programming With C++ (Revised Course) [Janua...
PDF
[Question Paper] Web Technology (Revised Course) [April / 2015]
PDF
[Question Paper] ASP.NET With C# (60:40 Pattern) [October / 2013]
PDF
[Question Paper] Fundamentals of Digital Computing (Revised Course) [April / ...
PDF
[Question Paper] Modern Operating System (Revised Course) [January / 2014]
PDF
Java and Data Structure (June - 2014) [Revised Course | Question Paper]
PPT
Roots With Calc3
PDF
[Question Paper] Operating System (Old Course) [June / 2014]
PDF
[Question Paper] Advanced SQL (Revised Course) [April / 2015]
PDF
[Question Paper] Data Communication and Network Standards (Revised Course) [J...
PDF
[Question Paper] Data Communication and Network Standards (Revised Course) [O...
PDF
ASP.NET With C# (Revised Syllabus) [QP / May - 2016]
PDF
[Question Paper] Web Design and Internet Based Applications (Old Syllabus) [A...
[Question Paper] Microprocessor and Microcontrollers (Revised Course) [Octobe...
[Question Paper] Digital Computer Fundamental (Old Course) [April / 2014]
[Question Paper] Computer Graphics (Revised Course) [April / 2014]
[Question Paper] Logic and Discrete Mathematics (Revised Course) [April / 2014]
[Question Paper] Web Technology (Revised Course) [October / 2016]
[Question Paper] Multimedia (Old Syllabus) [April / 2013]
[Question Paper] Data Communication and Network Standards (Revised Course) [J...
[Question Paper] Object Oriented Programming With C++ (Revised Course) [Janua...
[Question Paper] Web Technology (Revised Course) [April / 2015]
[Question Paper] ASP.NET With C# (60:40 Pattern) [October / 2013]
[Question Paper] Fundamentals of Digital Computing (Revised Course) [April / ...
[Question Paper] Modern Operating System (Revised Course) [January / 2014]
Java and Data Structure (June - 2014) [Revised Course | Question Paper]
Roots With Calc3
[Question Paper] Operating System (Old Course) [June / 2014]
[Question Paper] Advanced SQL (Revised Course) [April / 2015]
[Question Paper] Data Communication and Network Standards (Revised Course) [J...
[Question Paper] Data Communication and Network Standards (Revised Course) [O...
ASP.NET With C# (Revised Syllabus) [QP / May - 2016]
[Question Paper] Web Design and Internet Based Applications (Old Syllabus) [A...
Ad

Similar to Data structures and algorithms (20)

PPTX
DATA STRUCTURE CONTENT QUIZ II PPT.pptx
PPTX
Data structure part 1
PDF
Design And Analysis of Algorithms MCQ-set2.pdf
DOCX
Data structure
PDF
300+ top data structures and algorithms mc qs pdf 2020
PDF
Data structure - mcqs
PDF
ITI COPA Database Concepts MCQ PDF New Chapter
PPTX
Data structure part 2
PDF
AP PGECET Computer Science 2016 question paper
PDF
Ds qb 2021 rma
PPTX
DS MCQS.pptx
DOC
NET_Solved ans
PDF
Data Structure.pdf
DOC
C programming & data structure
DOCX
Which of the following operations is not can search in an unsorted lis.docx
PDF
DS Q&A
PPTX
Introduction to Data structure & Algorithms - Sethuonline.com | Sathyabama Un...
PDF
538034292-Data-Structure-Exam-Sample-2020.pdf
PDF
Gate Previous Years Papers It2005
DOCX
Which of the following operations is not can search in an unsorted li.docx
DATA STRUCTURE CONTENT QUIZ II PPT.pptx
Data structure part 1
Design And Analysis of Algorithms MCQ-set2.pdf
Data structure
300+ top data structures and algorithms mc qs pdf 2020
Data structure - mcqs
ITI COPA Database Concepts MCQ PDF New Chapter
Data structure part 2
AP PGECET Computer Science 2016 question paper
Ds qb 2021 rma
DS MCQS.pptx
NET_Solved ans
Data Structure.pdf
C programming & data structure
Which of the following operations is not can search in an unsorted lis.docx
DS Q&A
Introduction to Data structure & Algorithms - Sethuonline.com | Sathyabama Un...
538034292-Data-Structure-Exam-Sample-2020.pdf
Gate Previous Years Papers It2005
Which of the following operations is not can search in an unsorted li.docx
Ad

More from Mohammad Usman (18)

PPTX
Transformation in Education from past to current
PDF
AI for Data Analysis and Visualization.pdf
PPTX
Functions in Python and its types for beginners
PDF
Lists and its functions in python for beginners
PPTX
Modules and its usage in python for beginners
PPTX
Credit Card Fraud Detection Using AI.pptx
PPTX
Exploring Search Engines and their usage online
PPTX
Web Technologies Types available on the internet
PPTX
AI open tools for Research.pptx
PPTX
Open AI Tools for Data Analytics
PDF
Object oriented programming with c++
PPTX
Dynamic memory allocation
DOCX
Career Guide
DOCX
C areer banner
DOCX
Career counselling banner
DOCX
Career ccc
DOCX
Career ccc hindi
PPT
Literacy for or_against_the_poor_seminar
Transformation in Education from past to current
AI for Data Analysis and Visualization.pdf
Functions in Python and its types for beginners
Lists and its functions in python for beginners
Modules and its usage in python for beginners
Credit Card Fraud Detection Using AI.pptx
Exploring Search Engines and their usage online
Web Technologies Types available on the internet
AI open tools for Research.pptx
Open AI Tools for Data Analytics
Object oriented programming with c++
Dynamic memory allocation
Career Guide
C areer banner
Career counselling banner
Career ccc
Career ccc hindi
Literacy for or_against_the_poor_seminar

Recently uploaded (20)

PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Yogi Goddess Pres Conference Studio Updates
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
01-Introduction-to-Information-Management.pdf
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Yogi Goddess Pres Conference Studio Updates
Microbial disease of the cardiovascular and lymphatic systems
Weekly quiz Compilation Jan -July 25.pdf
Supply Chain Operations Speaking Notes -ICLT Program
01-Introduction-to-Information-Management.pdf
A systematic review of self-coping strategies used by university students to ...
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
human mycosis Human fungal infections are called human mycosis..pptx
2.FourierTransform-ShortQuestionswithAnswers.pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
O7-L3 Supply Chain Operations - ICLT Program
GDM (1) (1).pptx small presentation for students
Final Presentation General Medicine 03-08-2024.pptx
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Microbial diseases, their pathogenesis and prophylaxis

Data structures and algorithms

  • 2. STACK IS ALSO CALLED AS A) Last in first out B) First in last out C) Last in last out D) First in first out
  • 3. WHICH OF THE FOLLOWING IS TRUE ABOUT THE CHARACTERISTICS OF ABSTRACT DATA TYPES? I) IT EXPORTS A TYPE. II) IT EXPORTS A SET OF OPERATIONS A) True, False B) False, True C) True, True D) False, False
  • 4. …………… IS NOT THE COMPONENT OF DATA STRUCTURE. A) Operations B) Storage Structures C) Algorithms D) None of above
  • 5. WHICH OF THE FOLLOWING IS NOT THE PART OF ADT DESCRIPTION? A) Data B) Operations C) Both of the above D) None of the above
  • 6. INSERTING AN ITEM INTO THE STACK WHEN STACK IS NOT FULL IS CALLED …………. OPERATION AND DELETION OF ITEM FORM THE STACK, WHEN STACK IS NOT EMPTY IS CALLED ………..OPERATION. A) push, pop B) pop, push C) insert, delete D) delete, insert
  • 7. ……………. IS A PILE IN WHICH ITEMS ARE ADDED AT ONE END AND REMOVED FROM THE OTHER. A) Stack B) Queue C) List D) None of the above
  • 8. ………… IS VERY USEFUL IN SITUATION WHEN DATA HAVE TO STORED AND THEN RETRIEVED IN REVERSE ORDER. A) Stack B) Queue C) List D) None of the above
  • 9. WHICH OF THE FOLLOWING DATA STRUCTURE CAN’T STORE THE NON-HOMOGENEOUS DATA ELEMENTS? A) Arrays B) Records C) Pointers D) Stacks
  • 10. A ……. IS A DATA STRUCTURE THAT ORGANIZES DATA SIMILAR TO A LINE IN THE SUPERMARKET, WHERE THE FIRST ONE IN LINE IS THE FIRST ONE OUT. A) Queue linked list B) Stacks linked list C) Both of them D) Neither of them
  • 11. WHICH OF THE FOLLOWING IS NON-LINER DATA STRUCTURE? A) Stacks B) List C) Strings D) Trees
  • 12. IDENTIFY THE DATA STRUCTURE WHICH ALLOWS DELETIONS AT BOTH ENDS OF THE LIST BUT INSERTION AT ONLY ONE END. A) Input restricted dequeue B) Output restricted dequeue C) Priority queues D) Stack
  • 13. WHICH OF THE FOLLOWING DATA STRUCTURE IS NON LINEAR TYPE? A) Strings B) Lists C) Stacks D) Graph
  • 14. TO REPRESENT HIERARCHICAL RELATIONSHIP BETWEEN ELEMENTS, WHICH DATA STRUCTURE IS SUITABLE? A) Dequeue B) Priority C) Tree D) Graph
  • 15. MATCH THE FOLLOWING. A) COMPLETENESS I) HOW LONG DOES IT TAKE TO FIND A SOLUTION B) TIME COMPLEXITY II) HOW MUCH MEMORY NEED TO PERFORM THE SEARCH. C) SPACE COMPLEXITY III) IS THE STRATEGY GUARANTEED TO FIND THE SOLUTION WHEN THERE IN ONE. A) a-iii, b-ii, c-i B) a-i, b-ii, c-iii C) a-iii, b-i, c-ii D) a-i, b-iii, c-ii
  • 16. THE NUMBER OF COMPARISONS DONE BY SEQUENTIAL SEARCH IS ……………… A) (N/2)+1 B) (N+1)/2 C) (N-1)/2 D) (N+2)/2
  • 17. IN ……………, SEARCH START AT THE BEGINNING OF THE LIST AND CHECK EVERY ELEMENT IN THE LIST. A) Linear search B) Binary search C) Hash Search D) Binary Tree search
  • 18. STATE TRUE OR FALSE. I) BINARY SEARCH IS USED FOR SEARCHING IN A SORTED ARRAY. II) THE TIME COMPLEXITY OF BINARY SEARCH IS O(LOGN). A) True, False B) False, True C) False, False D) True, True
  • 19. WHICH OF THE FOLLOWING IS NOT THE INTERNAL SORT? A) Insertion Sort B) Bubble Sort C) Merge Sort D) Heap Sort
  • 20. IN A CIRCULAR QUEUE THE VALUE OF R WILL BE .. A) r=r+1 B) r=(r+1)% [QUEUE_SIZE – 1] C) r=(r+1)% QUEUE_SIZE D) r=(r-1)% QUEUE_SIZE
  • 21. WHICH OF THE FOLLOWING STATEMENT IS TRUE? I) USING SINGLY LINKED LISTS AND CIRCULAR LIST, IT IS NOT POSSIBLE TO TRAVERSE THE LIST BACKWARDS. II) TO FIND THE PREDECESSOR, IT IS REQUIRED TO TRAVERSE THE LIST FROM THE FIRST NODE IN CASE OF SINGLY LINKED LIST. A) i-only B) ii-only C) Both i and ii D) None of both
  • 22. THE ADVANTAGE OF …………….. IS THAT THEY SOLVE THE PROBLEM IF SEQUENTIAL STORAGE REPRESENTATION. BUT DISADVANTAGE IN THAT IS THEY ARE SEQUENTIAL LISTS. A) Lists B) Linked Lists C) Trees D) Queues
  • 23. WHAT WILL BE THE VALUE OF TOP, IF THERE IS A SIZE OF STACK STACK_SIZE IS 5 A) 5 B) 6 C) 4 D) None
  • 24. ………… IS NOT THE OPERATION THAT CAN BE PERFORMED ON QUEUE. A) Insertion B) Deletio C) Retrieval D) Traversal
  • 25. THE PROPERTY OF BINARY TREE IS A) The first subset is called left subtree B) The second subtree is called right subtree C) The root cannot contain NULL D) The right subtree can be empty
  • 26. STATE TRUE OR FALSE. I) THE DEGREE OF ROOT NODE IS ALWAYS ZERO. II) NODES THAT ARE NOT ROOT AND NOT LEAF ARE CALLED AS INTERNAL NODES. A) True, True B) True, False C) False, True D) False, False