0% found this document useful (0 votes)
98 views3 pages

Mock Test in Cmpe 1

The document contains a mock test on number systems and binary operations. It includes questions on converting between decimal, binary, octal, and hexadecimal number systems. It also contains questions on bitwise and relational operators, bitwise operations, addition, subtraction, multiplication, and division in different number systems.

Uploaded by

waignevera
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views3 pages

Mock Test in Cmpe 1

The document contains a mock test on number systems and binary operations. It includes questions on converting between decimal, binary, octal, and hexadecimal number systems. It also contains questions on bitwise and relational operators, bitwise operations, addition, subtraction, multiplication, and division in different number systems.

Uploaded by

waignevera
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

MOCK TEST IN CMPE 1

NUMBER SYSTEM

Number system is also known as what?

a. Numerical structure
b. Base/Radix system

Match the following:

Binary System • • Base 8

Decimal System • • Base 2

Octal System • • Base 16

Hexadecimal system • • Base 10

Radix is the number of______ that is used in counting in a particular number system.

a. Radicals
b. symbols

Convert the following: (Decimal to base N)

1. 38₁₀ → binary
2. 12757 → binary
3. 156.4375₁₀ → octal
4. A2B05F.6FE71₁₆ → octal
5. 2739.546875 → ℎ𝑒𝑥𝑎𝑑𝑒𝑐𝑖𝑚𝑎𝑙

Convert the following: (Base N to Decimal)

1. 100110₂
2. 234.34₈
3. AB3.8C₁₆

Convert the following: (Base N₁ to N₂)

1. 1101100₂ → Base 8
2. 72A₁₆ → Base 2
3. 4F.5K₂₅ → Base 15
4. B8ED₁₉ → Base 20
5. A2B.54₂₀ → Base 30

Convert the following: (Finding the base)

1. 121r → 144₈
2. 64K₃₀ → 203Ar
3. 6AE₂₅ → 301Ar

Works with the binary representation of a number rather than that number’s value. The operand is
treated as a set of bits, instead of as a single number. Most similar in most languages that support them.

a. Arithmetic operations
b. Bitwise operations

Are used to evaluate a condition that’s applied to one or two Boolean expressions. The result of the
evaluations is either true or false.

a. Bitwise operations
b. Relational Operations

Name the relational operators:

____ 1. ||

____ 2. >

____ 3. ==

____ 4. <

____ 5. !

Name the bitwise operators:

____ 6. >>

____ 7. &

____ 8. |

____ 9. ^

____ 10. <<


Performs the indicated operations:

1. [(101101₂ x110₂) | (10111010₂ - 00111001₂)] >> 2


2. {[1110₂ << 4] ^ [10010111₂ & 01011011₂]} >> 3
3. 100110₂, evaluate 1’s and 2’s complement
4. 𝐼1𝐵𝐹𝑆𝑅₃₀, evaluate 29’s and 30’s complement
5. Find the 32’s complement of 616JHM₃₂

ADDITION

1. 2374₁₀+8992₁₀
2. 𝐴0𝐹𝐹𝐶7₁₆+𝐸359𝐵₁₆+𝐵11𝐴𝐹₁₆
3. 100110₂+1111₂+111011₂+111110₂+101111₂

SUBTRACTION

1. 101001₂−100110₂
2. 𝐹002𝐶3₁₆−493𝐵𝐴₁₆
3. 8147₁₀−2582₁₀

MULTIPLICATION

1. 35774₈ 𝑥 121₈
2. 6𝐴5𝐹2₂₀ 𝑥 15𝐴₂₀

DIVISION

1. 2𝐹𝐺3₁₉/16₁₉
2. 25𝐵7₁₆/𝐴₁₆

MIXED

1. (C8209₁₆ - 10F2F₁₆) x 2A₁₆


2. (42444₅ + 31014₅ + 30424₅) x (1010₅ - 134₅)

You might also like