Data Structures Algorithms-II MCQs

Page No. 95

From the following given tree, what is the code word for the character ‘a’?


a 011


b010


c100


d101


View Answer 011

In Huffman coding, data in a tree always occur?


aroots


bleaves


cleft sub trees


d right sub trees


View Answer leaves

The code length does not depend on the frequency of occurrence of characters.


a true


bfalse


cA & B


dNone of these


View Answer false

How many bits are needed for standard encoding if the size of the character set is X?


alog X


b X+1


c2X


dX2


View Answer log X

Which bit is reserved as a parity bit in an ASCII set?


afirst


bseventh


ceighth


dtenth


View Answer eighth

How many printable characters does the ASCII character set consists of?


a120


b128


c100


d98


View Answer 100

Which of the following algorithms is the best approach for solving Huffman codes?


a exhaustive search


b greedy algorithm


c brute force algorithm


ddivide and conquer algorithm


View Answer greedy algorithm

The problem of placing n queens in a chessboard such that no two queens attack each other is called as?


an-queen problem


b eight queens puzzle


cfour queens puzzle


d 1-queen problem


View Answer n-queen problem

The problem of finding a subset of positive integers whose sum is equal to a given positive integer is called as?


an- queen problem


bsubset sum problem


cknapsack problem


dhamiltonian circuit problem


View Answer subset sum problem

___________ enumerates a list of promising nodes that could be computed to give the possible solutions of a given problem.


aExhaustive search


bBrute force


c Backtracking


dDivide and conquer


View Answer Backtracking

Goto Page No.

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