Data Structures Algorithms-II MCQs

Page No. 114

There are n dice with f faces. The faces are numbered from 1 to f. What is the minimum possible sum that can be obtained when the n dice are rolled together?


a1


bf


cn


dn*f


View Answer n

You have 2 dice each of them having 6 faces numbered from 1 to 6. What is the number of ways in which a sum of 11 can be achieved?


a0


b1


c2


d3


View Answer 2

You have 3 dice each having 6 faces. What is the number of permutations that can be obtained when you roll the 3 dice together?


a27


b36


c216


d81


View Answer 216

You have n dice each having f faces. What is the number of permutations that can be obtained when you roll the n dice together?


an*n*n…f times


bf*f*f…n times


cn*n*n…n times


df*f*f…f times


View Answer f*f*f…n times

You are given n dice each having f faces. You have to find the number of ways in which a sum of S can be achieved. This is the dice throw problem. Which of the following methods can be used to solve the dice throw problem?


aBrute force


bRecursion


cDynamic programming


dBrute force, Recursion and Dynamic Programming



What is the maximum number of ways in which a boolean expression with n + 1 terms can be parenthesized, such that the output is true?


anth catalan number


bn factorial


cn cube


dn square


View Answer nth catalan number

Which of the following gives the total number of ways of parenthesizing an expression with n + 1 terms?


an factorial


b n square


cn cube


dnth catalan number


View Answer nth catalan number

Consider the expression T | F ∧ T. In how many ways can the expression be parenthesized so that the output is F (false)?


a0


b1


c2


d3


View Answer 1

Consider the expression T & F ∧ T. What is the number of ways in which the expression can be parenthesized so that the output is T (true)?


a0


b1


c2


d3


View Answer 2

Consider the expression T & F | T. What is the number of ways in which the expression can be parenthesized so that the output is T (true)?


a0


b1


c2


d3


View Answer 2

Goto Page No.

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