Skip to content

Online Certification Guide

  • NPTEL
    • Data Structures
  • Certificate Exams
    • Hootsuite Certification
      • Hootsuite Platform
      • Hootsuite Social Marketing
    • SEMrush Certification
      • SEO
        • Semrush SEO Toolkit
        • SEO Toolkit Exam For Advanced SEMrush Users
        • SEMrush For Digital Agencies
        • SEMrush Competitive Analysis And Keyword Research
        • SEMrush Link Building Test
        • SEMrush Rank Tracking Test
        • SEMrush Mobile, International And Local SEO Test
        • SEMrush Social SEO Fundamentals Exam
        • SEMrush Management, Reporting And Collaboration Test
        • SEMrush Role Of Content Exam
      • Content Marketing
        • SEMrush Content Marketing Toolkit Exam
        • SEMrush Content Marketing Fundamentals Exam
      • PPC
        • SEMrush Advertising Toolkit
        • SEMrush PPC Fundamentals Exam
      • SMM
        • SEMrush Social Media Toolkit Exam
        • SEMrush SMM Fundamentals
      • Affiliate Program
        • SEMrush Affiliate Program Terms
      • Competitive Research
        • Competitor Analysis With SEMrush Exam
        • Advanced Competitive Research Exam
      • SEO Learning Path
        • SEMrush Keyword Research Exam
        • SEMrush Backlink Management Exam
        • SEMrush Mobile SEO Exam
        • SEMrush Local SEO Exam
      • Technical SEO Learning Path
        • SEMrush Site Audit Exam
        • SEMrush Technical SEO
        • SEMrush On Page And Technical SEO
      • Google Digital Garage
        • Google Digital Garage Quiz
    • GYMNASIUM
      • Coding For Designers
  • Coursera
  • Question Papers
    • BCA
  • Tools
    • HTML Editor
    • 2048 Game
    • Gradient Color Code Generator
    • WordPress Free Themes & Plugins
  • News
  • Blog

Data Structures

Consider the situation in which assignment operation is very costly. Which of the following sorting algorithm should be performed so that the number of assignment operations is minimized in general?

 a) Insertion sort b) Selection sort c) Heap sort d) None

Which of the following algorithm pays the least attention to the ordering of the elements in the input list?

a) Insertion sort b) Selection sort c) Quick sort d) None

If the given input array is sorted or nearly sorted, which of the following algorithm gives the best performance?

 a) Insertion sort b) Selection sort c) Quick sort d) Merge sort

The time complexity of heap sort in worst case is

a) O(logn) b) O(n) c) O(nlogn) d) O(n2)

Which of the following is not a non-comparison sort?

a) Counting sort b) Bucket sort c) Radix sort d) Shell sort

What would be the worst case time complexity of the insertion sort algorithm, if the inputs are restricted to permutation of 1…..n with at most n inversion?

a) θ (n2) b) θ (nlogn) c) θ (n1.5) d) θ (n)

Running merge sort on an array of size n which is already sorted is

a) O(n) b) O(nlogn) c) O(n2) d) None

Which of the following is not an in-place sorting algorithm?

a) Selection sort b) Heap sort c) Quick sort d) Merge sort

Which of the following is a stable sorting algorithm?

 a) Merge sort  b) Typical in-place quick sort  c) Heap sort  d) Selection sort

Which of the following is not a stable sorting algorithm?

a) Insertion sort b) Selection sort c) Bubble sort d) Merge sort

In addition to the pancake sorting problem, there is the case of the burnt pancake problem in which we are dealing with pancakes (discs) that are burnt on one side only. In this case it is taken that the burnt side must always end up _______

a) Faced down b) Faced up c) It doesn’t matter d) Both sides are burnt

The given array is arr = {2,3,4,1,6}. What are the pivots that are returned as a result of subsequent partitioning?

a) 1 and 3 b) 3 and 1 c) 2 and 6 d) 6 and 2

What is the best case complexity of QuickSort?

a) O(nlogn) b) O(logn) c) O(n) d) O(n2)

For merging two sorted lists of size m and n into sorted list of size m+n, we require comparisons of

a) O(m) b) O(n) c) O(m+n) d) O(logm + logn)

What is the advantage of bubble sort over other sorting techniques?

 a) It is faster b) Consumes less memory c) Detects whether the input is already sorted d) All of the mentioned

The best case for the recursion are sub problems of size _____.

a) 0 or 1 b) 2 or 3 c) 4 or 5 d) 6 or 7

Older posts
Newer posts
← Previous Page1 … Page5 Page6 Page7 … Page18 Next →

Explore Topics

  • NPTEL
  • Coursera
  • GYMNASIUM
  • Hootsuite
  • SEMrush
Online Certification Guide Logo

OnlineCertificationGuide here to help you out in your Journey in the study. So my friend share the site with your friends in case I am helpful to you.

Categories

  • → NPTEL
  • → Coursera
  • → GYMNASIUM
  • → Hootsuite
  • → SEMrush

Site Links

  • → About
  • → Contact
  • → Cookie Policy
  • → Privacy Policy
  • → Disclaimer
© 2025 Online Certification Guide • Made with ❤ India
  • NPTEL
    • Data Structures
  • Certificate Exams
    • Hootsuite Certification
      • Hootsuite Platform
      • Hootsuite Social Marketing
    • SEMrush Certification
      • SEO
        • Semrush SEO Toolkit
        • SEO Toolkit Exam For Advanced SEMrush Users
        • SEMrush For Digital Agencies
        • SEMrush Competitive Analysis And Keyword Research
        • SEMrush Link Building Test
        • SEMrush Rank Tracking Test
        • SEMrush Mobile, International And Local SEO Test
        • SEMrush Social SEO Fundamentals Exam
        • SEMrush Management, Reporting And Collaboration Test
        • SEMrush Role Of Content Exam
      • Content Marketing
        • SEMrush Content Marketing Toolkit Exam
        • SEMrush Content Marketing Fundamentals Exam
      • PPC
        • SEMrush Advertising Toolkit
        • SEMrush PPC Fundamentals Exam
      • SMM
        • SEMrush Social Media Toolkit Exam
        • SEMrush SMM Fundamentals
      • Affiliate Program
        • SEMrush Affiliate Program Terms
      • Competitive Research
        • Competitor Analysis With SEMrush Exam
        • Advanced Competitive Research Exam
      • SEO Learning Path
        • SEMrush Keyword Research Exam
        • SEMrush Backlink Management Exam
        • SEMrush Mobile SEO Exam
        • SEMrush Local SEO Exam
      • Technical SEO Learning Path
        • SEMrush Site Audit Exam
        • SEMrush Technical SEO
        • SEMrush On Page And Technical SEO
      • Google Digital Garage
        • Google Digital Garage Quiz
    • GYMNASIUM
      • Coding For Designers
  • Coursera
  • Question Papers
    • BCA
  • Tools
    • HTML Editor
    • 2048 Game
    • Gradient Color Code Generator
    • WordPress Free Themes & Plugins
  • News
  • Blog
Go to mobile version