Search Header Logo

KodKom Latihan UTS-1

Authored by Marisa Paryasto

Other

University

Used 4+ times

KodKom Latihan UTS-1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in creating a Shannon-Fano code?

Divide the symbols into groups of equal probability

Sort symbols in descending order of frequency

Assign binary codes randomly

Combine the least probable symbols

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main principle behind Shannon-Fano coding?

Symbols are grouped based on probability

Each symbol gets a unique code based on frequency

Symbols with higher probabilities get longer codes

Symbols with lower probabilities get shorter codes

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Shannon-Fano coding, how are the codes assigned after dividing groups?

Randomly assigned binary codes

Higher-probability symbols get longer codes

One group gets code '0', the other gets '1'

All symbols receive fixed-length codes

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Shannon-Fano is considered a __________.

Variable-length prefix coding technique

Fixed-length coding technique

Lossy compression algorithm

Arithmetic coding technique

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A drawback of Shannon-Fano coding compared to Huffman coding is:

It’s harder to implement

It doesn’t guarantee optimal codes

It only works with binary symbols

It’s slower in encoding

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does Huffman coding prioritize when building a code tree?

Dividing symbols into equal groups

Merging the least probable symbols first

Sorting symbols alphabetically

Assigning all symbols fixed-length codes

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Huffman coding is a __________.

Lossy compression algorithm

Fixed-length coding technique

Variable-length prefix coding technique

Method that generates non-binary codes

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?