Data Structures Algorithms-II MCQs

Page No. 99

How many possible solutions occur for a 10-queen problem?


a850


b742


c842


d724


View Answer 724

How many possible solutions exist for an 8-queen problem?


a100


b98


c92


d88


View Answer 92

Of the following given options, which one of the following is a correct option that provides an optimal solution for 4-queens problem?


a (3,1,4,2)


b(2,3,1,4)


c(4,3,2,1)


d (4,2,3,1)


View Answer (3,1,4,2)

Which of the following methods can be used to solve n-queen’s problem?


agreedy algorithm


bdivide and conquer


c iterative improvement


dbacktracking


View Answer backtracking

In n-queen problem, how many values of n does not provide an optimal solution?


a1


b2


c3


d4


View Answer 2

Not more than 2 queens can occur in an n-queens problem.


a true


b false


cA & B


d None of the above


View Answer false

Where is the n-queens problem implemented?


acarom


b chess


c ludo


dcards


View Answer chess

Placing n-queens so that no two queens attack each other is called?


an-queen’s problem


b8-queen’s problem


cHamiltonian circuit problem


dsubset sum problem


View Answer n-queen’s problem

In how many directions do queens attack each other?


a1


b 2


c3


d4


View Answer 3

Which of the following problems should be solved using dynamic programming?


aMergesort


bBinary search


c Longest common subsequence


dQuicksort



Goto Page No.

Page 99 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