Data Structures Algorithms-II MCQs

Page No. 84

Which of the following option is wrong?


aFibonacci number can be calculated by using Dynamic programming

✖


bFibonacci number can be calculated by using Recursion method

✖


cFibonacci number can be calculated by using Iteration method

✖


d No method is defined to calculate Fibonacci number

✓



Which of the following is not a fibonnaci number?


a8

✖


b21

✖


c55

✖


d14

✓


View Answer 14

Suppose the first fibonnaci number is 0 and the second is 1. What is the sixth fibonnaci number?


a 5

✓


b6

✖


c 7

✖


d8

✖


View Answer 5

Which of the following methods used to find the sum of first n natural numbers has the least time complexity?


aRecursion

✖


bIteration

✖


cBinomial coefficient

✓


d All have equal time complexity

✖


View Answer Binomial coefficient

Which of the following gives the sum of the first n natural numbers?


anC2

✖


b(n-1)C2

✖


c (n+1)C2

✓


d(n+2)C2

✖


View Answer (n+1)C2

Which of the following option is wrong about natural numbers?


a Sum of first n natural numbers can be calculated by using Iteration method

✖


bSum of first n natural numbers can be calculated by using Recursion method

✖


c Sum of first n natural numbers can be calculated by using Binomial coefficient method

✖


dNo method is prescribed to calculate sum of first n natural number

✓



What is the computational complexity of Binary GCD algorithm where a and b are integers?


aO (log a + log b)2)

✓


b O (log (a + b))

✖


cO (log ab)

✖


dO (log a-b)

✖


View Answer O (log a + log b)2)

Who gave the expression for the probability and expected value of gcd?


a James E. Nymann

✓


bRiemann

✖


cThomae

✖


dEuler

✖


View Answer James E. Nymann

Which is the correct term of the given relation, gcd (a, b) * lcm (a, b) =?


a|a*b|

✓


ba + b

✖


ca – b

✖


da / b

✖


View Answer |a*b|

Is gcd an associative function.


aTrue

✓


b False

✖


cA & B

✖


dNone of these

✖


View Answer True

Goto Page No.

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