Data Structures Algorithms-II MCQs

Page No. 52

What will be the time complexity of the code to print combinations?


a O(n)


bO(n2)


c O(n log n)


dO(2n)


View Answer O(2n)

The code for printing combinations is in-place.


atrue


bfalse


cA & B


dNone of these


View Answer false

What will be the auxiliary space requirement (excluding call stack) of the program to print combinations of r elements each from array of size n?


aO(n*r)


b O(n/r)


cO(n)


dO(r)


View Answer O(r)

What will be the lexicographical order of combinations of 2 elements each formed from the array arr={1,2,3}?


a{{2,1},{3,2},{3,1}}


b {{1,2},{2,3},{1,3}}


c {{1,2},{1,3},{2,3}}


d{{2,1},{3,1},{3,2}}



How many combinations of 2 elements will be formed from the array arr={1,2,3}?


a 1


b 2


c 3


d4


View Answer 3

What is meant by the term lexicographical order?


a dictionary ordering of elements


breverse dictionary ordering of elements


c to sort according to value of first element


d to sort according to value of last element



The no. of partitions of which of the following integer will be divisible by 5?


a3


b5


c9


d6


View Answer 9

Which of the following is true according to Ramanujan’s congruence?


aNo. of partitions are divisible by 5 for a number 3 more than a multiple of 5


bNo. of partitions are divisible by 5 for a number 4 more than a multiple of 5


cNo. of partitions are divisible by 5 for a number 2 more than a multiple of 5


dNo. of partitions are divisible by 5 for a number 1 more than a multiple of 5



What is meant by number theory?


astudy of integers


b study of complex numbers


cnumerology


d theory of origination of mathematics


View Answer study of integers

How many partitions will be formed for the integer 3?


a2


b3


c4


d8


View Answer 3

Goto Page No.

Page 52 of 149

Alphabetical MCQs Categories

Here below You find all kind of categories of MCQs in alphabetical order.


"Comprehensive Collection of MCQs: Alphabetically Organized by Subject"

"Discover an extensive collection of multiple-choice questions (MCQs) neatly categorized by subject from A to Z. This resource is designed for anyone eager to explore various topics in a straightforward and organized manner. Whether you're a student preparing for exams, an educator seeking supplementary materials, or simply curious about different subjects, this compilation offers a convenient way to learn and assess your knowledge. With questions arranged alphabetically, navigation is effortless, allowing you to delve into subjects of interest at your own pace. Engage, learn, and expand your understanding with this accessible and comprehensive repository of MCQs!"


BolPakistan

bolpakistan.com.pk includes Job Mcqs and Pak Mcqs is the Top Largest Mcqs Forum in World, in which you can read Mcqs of All Subjects, PPSC test preparation, FPSC, NTS and PPSC PAST PAPERS, PPSC PAST MCQS. A Collection of Repeated MCQs for JOBs seekers.

Copyright © 2024, Designed & Developed by BolPakistan