Data Structures Algorithms-II MCQs

Page No. 50

What is the running time of Strassen’s algorithm for matrix multiplication?


aO(n2.81)


bO(n3)


cO(n1.8)


dO(n2)


View Answer O(n2.81)

Strassen’s algorithm is a/an_____________ algorithm.


aNon- recursive


bRecursive


cApproximation


dAccurate


View Answer Recursive

Which header file contains the function rand() in C language?


astdlib


biostream


cstdio


d time


View Answer stdlib

Predict the output of the following code.


acompilation error


brandom number between 0 to RAND_MAX


c cannot be predicted


d0



Pseudo random number generators can be used for data encryption.


atrue


b false


cA & B


d None of the above


View Answer false

What is the default value of seed if function rand() is called before srand()?


asrand(0)


bsrand(1)


csrand(time(null))


dsrand(-1)


View Answer srand(1)

Function rand() generates unique random numbers every time.


atrue


b false


cA & B


d None of the above


View Answer false

What is the minimum value of RAND_MAX possible in any implementation?


a 0


b32767


c2147483647


d128


View Answer 32767

Which of the following will generate random numbers in the range 1-100 (both inclusive)?


arand() % 100


brand() % 101


c (rand() % (101)) + 1


d (rand() % (100)) + 1



What is the correct formula for generating random numbers in the range (lower,upper) using rand()?


arand() % (upper – lower)


b rand() + lower


c(rand()%(upper-lower)) + lower


d(rand()%(upper-lower+1)) + lower



Goto Page No.

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