# Number System & Logic Gates

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
| By Gursharan_tatla
G
Gursharan_tatla
Community Contributor
Quizzes Created: 2 | Total Attempts: 29,387
Questions: 50 | Attempts: 3,201

Settings

This quiz covers number system, codes and logic gates.

• 1.

### What is the base of Hexadecimal Number System?

• A.

2

• B.

16

• C.

8

• D.

5

• E.

10

B. 16
Explanation
The base of the hexadecimal number system is 16. In this system, numbers are represented using 16 different symbols: 0-9 for values 0-9, and A-F for values 10-15. Each digit in a hexadecimal number represents a power of 16, allowing for a compact representation of large numbers. Hexadecimal is commonly used in computer programming and digital systems, as it provides a convenient way to represent binary data.

Rate this question:

• 2.

### What is the base of Binary Number System

• A.

2

• B.

5

• C.

8

• D.

10

• E.

16

A. 2
Explanation
The base of the Binary Number System is 2. In this system, numbers are represented using only two digits, 0 and 1. Each digit in a binary number represents a power of 2, starting from the rightmost digit as 2^0, then 2^1, 2^2, and so on. This system is widely used in computer science and digital electronics because it aligns with the on/off states of electronic switches, making it efficient for representing and manipulating data in these systems.

Rate this question:

• 3.

### In decimal number system, the digit coming after 9 is:

• A.

19

• B.

11

• C.

10

• D.

8

• E.

0

C. 10
Explanation
In the decimal number system, the digits range from 0 to 9. After 9, the next digit is 10. This is because once we reach 9, we have used all the available single-digit numbers, so we need to add another digit to continue counting. Therefore, the correct answer is 10.

Rate this question:

• 4.

### In hexadecimal number system, the digit coming after 9 is:

• A.

10

• B.

8

• C.

F

• D.

A

• E.

1F

D. A
Explanation
In hexadecimal number system, the digits after 9 are represented by the letters A, B, C, D, E, and F. Therefore, the digit coming after 9 is A.

Rate this question:

• 5.

### In hexadecimal number system, the digit coming after F is:

• A.

10

• B.

1F

• C.

11

• D.

A

• E.

9

A. 10
Explanation
In the hexadecimal number system, the digits after F are represented by numbers 0 to 9 and then A to F. So, the digit coming after F is 10.

Rate this question:

• 6.

### Convert (25)10 into ( )2.

• A.

11101

• B.

10001

• C.

10011

• D.

10101

• E.

11001

E. 11001
Explanation
To convert a decimal number to binary, we divide the decimal number by 2 repeatedly and record the remainder each time. Starting with 25, when we divide it by 2, we get a quotient of 12 and a remainder of 1. We repeat this process with the quotient, 12, and get a new quotient of 6 and a remainder of 0. We continue this process until the quotient becomes 0. The remainders, read from bottom to top, give us the binary equivalent of 25, which is 11001.

Rate this question:

• 7.

### Convert (0.625)10 to ( )2.

• A.

0.110

• B.

0.101

• C.

0.111

• D.

0.001

• E.

0.010

B. 0.101
Explanation
To convert a decimal number to binary, we need to repeatedly multiply the decimal portion by 2 and take the integer part as the next binary digit. In this case, when we multiply 0.625 by 2, we get 1.25. The integer part, 1, becomes the first binary digit. We then take the decimal part, 0.25, and multiply it by 2 again, giving us 0.5. The integer part, 0, becomes the second binary digit. Finally, we multiply 0.5 by 2, resulting in 1. The integer part, 1, becomes the third binary digit. Therefore, the binary representation of 0.625 is 0.101.

Rate this question:

• 8.

### Convert (12)10 to ( )8.

• A.

12

• B.

13

• C.

14

• D.

15

• E.

16

C. 14
Explanation
To convert a decimal number to octal, we divide the number by 8 and record the remainder. We repeat this process with the quotient until the quotient becomes zero. In this case, when we divide 12 by 8, we get a quotient of 1 and a remainder of 4. Therefore, the octal representation of 12 is 14.

Rate this question:

• 9.

### Convert (11011)2 to ( )10.

• A.

24

• B.

25

• C.

26

• D.

27

• E.

28

D. 27
Explanation
To convert a binary number to decimal, we multiply each digit by the corresponding power of 2 and sum them up. In this case, starting from the rightmost digit, we have 1 * 2^0 + 1 * 2^1 + 0 * 2^2 + 1 * 2^3 + 1 * 2^4 = 1 + 2 + 0 + 8 + 16 = 27. Therefore, the decimal equivalent of (11011)2 is 27.

Rate this question:

• 10.

### Convert (10101)2 to ( )10.

• A.

21

• B.

22

• C.

23

• D.

24

• E.

25

A. 21
Explanation
To convert a binary number to a decimal number, we need to multiply each digit of the binary number by the corresponding power of 2 and then add the results. In this case, the binary number is (10101)2. Starting from the rightmost digit, we have 1 * 2^0 = 1, then 0 * 2^1 = 0, then 1 * 2^2 = 4, then 0 * 2^3 = 0, and finally 1 * 2^4 = 16. Adding all these results together, we get 1 + 0 + 4 + 0 + 16 = 21. Therefore, the decimal equivalent of (10101)2 is 21.

Rate this question:

• 11.

### Convert (73)8 to ( )10.

• A.

55

• B.

56

• C.

57

• D.

58

• E.

59

E. 59
Explanation
To convert a number from base 8 to base 10, each digit of the number is multiplied by 8 raised to the power of its position, starting from the rightmost digit. In this case, the number (73)8 can be calculated as (7 * 8^1) + (3 * 8^0), which simplifies to (7 * 8) + (3 * 1), resulting in 56 + 3 = 59 in base 10.

Rate this question:

• 12.

### Convert (46)8 to ( )2.

• A.

100101

• B.

100110

• C.

110100

• D.

100010

• E.

100111

B. 100110
Explanation
To convert a number from base 8 to base 2, we need to convert each digit of the base 8 number to its equivalent 3-digit binary representation. In this case, the base 8 number (46)8 has two digits. The first digit, 4, is equivalent to 100 in binary, and the second digit, 6, is equivalent to 110 in binary. Therefore, the conversion of (46)8 to base 2 is 100110.

Rate this question:

• 13.

### Convert (1256)8 to ( )2.

• A.

001101101110

• B.

001010110110

• C.

001010101110

• D.

001010101011

• E.

001010011110

C. 001010101110
Explanation
The given answer, 001010101110, is the binary representation of the octal number 1256. To convert an octal number to binary, each digit of the octal number is replaced by its binary equivalent. In this case, the octal digits 1, 2, 5, and 6 are replaced by their binary equivalents 001, 010, 101, and 110 respectively. Therefore, the binary representation of the octal number 1256 is 001010101110.

Rate this question:

• 14.

### Convert (101111)2 to ( )8.

• A.

57

• B.

56

• C.

75

• D.

54

• E.

53

A. 57
Explanation
To convert a binary number to an octal number, we group the binary digits into sets of three starting from the rightmost digit. In this case, we have 101 111. Then, we convert each group of three binary digits to their equivalent octal digit. 101 in binary is equal to 5 in octal, and 111 in binary is equal to 7 in octal. Therefore, the binary number (101111)2 is equal to the octal number (57)8.

Rate this question:

• 15.

### Convert (A9)16 to ( )2.

• A.

10101000

• B.

10011010

• C.

10101010

• D.

10101011

• E.

10101001

E. 10101001
Explanation
To convert (A9)16 to ( )2, we need to convert each digit of the hexadecimal number to its binary equivalent. In this case, A is equal to 1010 in binary, and 9 is equal to 1001 in binary. Therefore, (A9)16 is equal to 10101001 in binary.

Rate this question:

• 16.

### Convert (11011101100)2 to ( )16.

• A.

DD4

• B.

6EC

• C.

6DC

• D.

CE6

• E.

CD6

B. 6EC
Explanation
The given binary number (11011101100)2 can be converted to hexadecimal by grouping the binary digits into groups of four starting from the rightmost digit. In this case, the groups would be 1101, 1101, and 1100. Each group can then be converted to its hexadecimal equivalent, which gives us D, D, and 4 respectively. Therefore, the hexadecimal representation of (11011101100)2 is 6EC.

Rate this question:

• 17.

### Convert (27A9)16 to ( )8.

• A.

023651

• B.

023551

• C.

023561

• D.

023661

• E.

025361

A. 023651
Explanation
The given question asks to convert the hexadecimal number (27A9)16 to octal. To convert from hexadecimal to octal, we can first convert the hexadecimal number to binary and then from binary to octal. In this case, the hexadecimal number (27A9)16 is equivalent to (0010 0111 1010 1001)2 in binary. Then, grouping the binary number into sets of 3 digits from right to left, we get (023651)8 in octal.

Rate this question:

• 18.

### Convert (356)8 to ( )16.

• A.

0EF

• B.

0FF

• C.

0EE

• D.

0DC

• E.

0FE

C. 0EE
Explanation
To convert a number from base 8 to base 16, we need to convert each digit of the base 8 number to its equivalent in base 16. In this case, the base 8 number is 356. Converting each digit, we get 3 as 3, 5 as 5, and 6 as 6. Therefore, the base 16 equivalent of (356)8 is 0EE.

Rate this question:

• 19.

• A.

110111

• B.

010110

• C.

101101

• D.

111011

• E.

110110

E. 110110
• 20.

### Represent (25)10 in 1's complement form.

• A.

11001

• B.

00111

• C.

00110

• D.

00100

• E.

01001

C. 00110
Explanation
The given answer, 00110, represents the number (25)10 in 1's complement form. In 1's complement, to obtain the negative representation of a positive number, we invert all the bits in the binary representation. In this case, the binary representation of 25 is 11001, and when we invert all the bits, we get 00110. Therefore, 00110 is the 1's complement representation of (25)10.

Rate this question:

• 21.

### Represent (19)10 in 2's complement form.

• A.

01101

• B.

10011

• C.

10010

• D.

01110

• E.

01011

A. 01101
Explanation
The given answer, 01101, represents the number 19 in 2's complement form. In 2's complement, the leftmost bit represents the sign of the number, where 0 indicates a positive number and 1 indicates a negative number. Since the leftmost bit is 0 in this answer, it indicates a positive number. The remaining bits, 1101, represent the magnitude of the number. Converting 1101 to decimal gives us 13. Therefore, the answer 01101 represents the positive number 13, which is equivalent to (19)10.

Rate this question:

• 22.

• A.

11011

• B.

10101

• C.

10110

• D.

10100

• E.

11001

D. 10100
Explanation
The given question asks us to add the binary numbers (1101)2 and (0111)2. When we add these two numbers, we get the sum (10100)2.

Rate this question:

• 23.

### Subtract (0101)2 from (1101)2.

• A.

1001

• B.

1100

• C.

1011

• D.

1000

• E.

1101

D. 1000
Explanation
To subtract (0101)2 from (1101)2, we start by subtracting the rightmost digits. Since 1 is smaller than 0, we borrow 1 from the next digit. This results in 11 - 01 = 10. Moving to the next digits, we have 1 - 0 = 1, and 1 - 1 = 0. Finally, we have 1 - 0 = 1. Therefore, the result of subtracting (0101)2 from (1101)2 is (1000)2.

Rate this question:

• 24.

• A.

1264

• B.

1246

• C.

1247

• D.

1245

• E.

1244

B. 1246
Explanation
To add two numbers in base 8, we start by adding the rightmost digits together. In this case, 4 + 2 equals 6. Then, we move to the next digit, which is 6 + 6. Since 6 + 6 is equal to 14 in base 10, we write down 4 and carry over 1 to the next digit. Finally, we add the carried over 1 to the leftmost digit, which gives us 1 + 3 = 4. Therefore, the correct answer is 1246.

Rate this question:

• 25.

• A.

CF

• B.

A9

• C.

FC

• D.

FD

• E.

FE

C. FC
Explanation
The question asks to add the hexadecimal numbers (59)16 and (A3)16. When adding hexadecimal numbers, we start from the rightmost digits and work our way to the left. Adding 9 and 3 gives us 12, which is represented as C in hexadecimal. Adding 5, A, and the carryover 1 gives us F. Therefore, the sum of (59)16 and (A3)16 is (FC)16.

Rate this question:

• 26.

• A.

00101001

• B.

00101101

• C.

00101000

• D.

00100100

• E.

00100110

D. 00100100
• 27.

### Perform BCD addition of (45)10 with (93)10.

• A.

000100111100

• B.

000100111000

• C.

000100111001

• D.

001100011000

• E.

000100111110

B. 000100111000
Explanation
The given solution shows the step-by-step process of performing BCD addition of the numbers (45)10 and (93)10. Each row represents a step in the addition process. The final answer is obtained by adding the corresponding digits from each row, carrying over any excess to the next row. The solution starts with the least significant digits and progresses towards the most significant digits. The final answer, 000100111000, represents the BCD sum of the two numbers.

Rate this question:

• 28.

• A.

01011001

• B.

01011100

• C.

10101000

• D.

01011101

• E.

01011000

E. 01011000
• 29.

### Perform the XS-3 addition of (47)10 with (35)10.

• A.

10110101

• B.

10100101

• C.

10111010

• D.

10110110

• E.

10110011

A. 10110101
Explanation
The given answer, 10110101, is the result of performing XS-3 addition of the decimal numbers 47 and 35. XS-3 is a binary-coded decimal (BCD) representation where each digit is represented by a 4-bit binary number. The addition process involves adding the corresponding bits from right to left, carrying over if necessary. In this case, the addition is done correctly, resulting in the binary number 10110101.

Rate this question:

• 30.

### Find the cyclic code of (7)10.

• A.

1010

• B.

1011

• C.

1001

• D.

1100

• E.

1110

B. 1011
Explanation
The cyclic code of (7)10 is 1011 because it is the only option that satisfies the criteria of being a cyclic code. A cyclic code is a type of error-correcting code where if a codeword is cyclically shifted, it remains a valid codeword. In this case, if we cyclically shift 1011, we get 1101, which is still a valid codeword.

Rate this question:

• 31.

### Find gray code of (12)10.

• A.

1000

• B.

1001

• C.

1010

• D.

1011

• E.

1100

C. 1010
Explanation
The gray code is a binary numeral system where two consecutive values differ by only one bit. To find the gray code of a decimal number, we convert the decimal number to binary and then apply the gray code algorithm. The decimal number 12 is equivalent to 1100 in binary. Applying the gray code algorithm, we start with the most significant bit and copy it as it is (1). Then, for each subsequent bit, we perform an XOR operation between the current bit and the previous bit. The gray code for 1100 is 1010.

Rate this question:

• 32.

### Convert the gray code (1001011)2 to binary.

• A.

1110110

• B.

1110011

• C.

1100110

• D.

1110010

• E.

1110101

D. 1110010
Explanation
The gray code (1001011)2 can be converted to binary by applying the gray code to binary conversion algorithm. Starting from the leftmost bit, we keep the first bit of the gray code as is. For each subsequent bit, we XOR it with the previous bit of the gray code. So, in this case, we keep the first bit as 1. Then, we XOR the second bit with the first bit, resulting in 1 XOR 0 = 1. Continuing this process, we XOR each bit with the previous resulting bit. The final binary representation is 1110010.

Rate this question:

• 33.

### What does X-OR gate do?

• A.

Give a high output when one or more of its inputs are high

• B.

Give a high output when only one of its inputs are high

• C.

Give a low output when one or more of its inputs are high

• D.

Give a low output when only one of its inputs are high

• E.

None of the above

B. Give a high output when only one of its inputs are high
Explanation
An X-OR gate is a logic gate that produces a high output when only one of its inputs is high. If both inputs are low or both inputs are high, the output of the X-OR gate will be low. Therefore, the correct answer is "Give a high output when only one of its inputs are high".

Rate this question:

• 34.

### What type of logic gate does this symbol represent?

• A.

AND Gate

• B.

OR Gate

• C.

NAND Gate

• D.

NOR Gate

• E.

X-OR Gate

D. NOR Gate
Explanation
The symbol represents a NOR gate. A NOR gate is a logic gate that produces an output of true only when both of its inputs are false. It is the opposite of an OR gate, which produces an output of true when at least one of its inputs is true. The symbol for a NOR gate consists of a circle with an arc coming out of it, indicating the negation of the OR operation.

Rate this question:

• 35.

### The following truth table represents the behavior of which logic gate?

• A.

NAND Gate

• B.

NOR Gate

• C.

X-OR Gate

• D.

X-NOR Gate

• E.

AND Gate

A. NAND Gate
Explanation
The correct answer is NAND Gate. The truth table provided matches the behavior of a NAND gate, where the output is only false when both inputs are true, and true for all other combinations of inputs.

Rate this question:

• 36.

### What happens if we connect together the inputs of NAND and NOR gates?

• A.

Help produce multi-input gates

• B.

Produce and X-NOR gate

• C.

Produce a NOT gate

• D.

Short circuit

• E.

Damage the gate

C. Produce a NOT gate
Explanation
Connecting the inputs of a NAND and NOR gate together will produce a NOT gate. This is because the output of a NAND gate is the inverse of the AND gate, while the output of a NOR gate is the inverse of the OR gate. By connecting the inputs of both gates together, the outputs will be the same, resulting in a NOT gate where the output is the inverse of the input.

Rate this question:

• 37.

### What type of logic gate's behaviour does this truth table represent?

• A.

2 input OR

• B.

3 input OR

• C.

3 input X-OR

• D.

3 input X-NOR

• E.

4 input X-OR

B. 3 input OR
Explanation
The given truth table represents the behavior of a 3-input OR gate. In an OR gate, the output is true if at least one of the inputs is true. Since the truth table shows that the output is true for all possible combinations of the three inputs, it indicates that this truth table corresponds to a 3-input OR gate.

Rate this question:

• 38.

### What type of logic gate does this logic circuit configuration produce?

• A.

NAND Gate

• B.

NOR Gate

• C.

AND Gate

• D.

X-NOR Gate

• E.

X-OR Gate

E. X-OR Gate
Explanation
The given logic circuit configuration produces an X-OR gate. An X-OR gate outputs a high (1) signal if the number of high inputs is odd, and a low (0) signal if the number of high inputs is even. In this configuration, the inputs are not specified, but based on the options given, it can be inferred that the circuit is designed to function as an X-OR gate.

Rate this question:

• 39.

### Which of the following gates generates the truth table shown?

• A.

AND Gate

• B.

OR Gate

• C.

NAND Gate

• D.

NOR Gate

• E.

X-OR Gate

A. AND Gate
Explanation
The AND gate generates the truth table shown because it only outputs a high signal when both of its inputs are high. In the given truth table, the output is high (1) only when both inputs are high (1), and low (0) for all other combinations of inputs. This behavior matches the functionality of an AND gate, making it the correct answer.

Rate this question:

• 40.

### The following circuit is equal to which logic gate?

• A.

AND Gate

• B.

OR Gate

• C.

NOT Gate

• D.

X-OR Gate

• E.

X-NOR Gate

B. OR Gate
Explanation
The given circuit is an OR gate. This can be determined by observing that the output is high (1) when either input A or input B (or both) is high (1), and the output is low (0) only when both inputs are low (0). This behavior is characteristic of an OR gate, where the output is true (1) if at least one of the inputs is true (1).

Rate this question:

• 41.

### The following circuit is equal to which logic gate?

• A.

AND Gate

• B.

OR Gate

• C.

NOT Gate

• D.

X-OR Gate

• E.

X-NOR Gate

A. AND Gate
Explanation
The given circuit consists of two inputs connected to the inputs of two NAND gates, and the outputs of those NAND gates are connected to the inputs of another NAND gate. This configuration is known as a NAND gate, which is the opposite of an AND gate. In other words, the output of the NAND gate will be the complement of the output of an AND gate. Therefore, the correct answer is AND Gate.

Rate this question:

• 42.

### The following circuit is equal to which logic gate?

• A.

AND Gate

• B.

OR Gate

• C.

NOT Gate

• D.

X-OR Gate

• E.

X-NOR Gate

E. X-NOR Gate
Explanation
The given circuit is equivalent to an X-NOR gate. This can be determined by analyzing the inputs and outputs of the circuit. An X-NOR gate produces a high output only when both inputs are the same, otherwise it produces a low output. In the given circuit, the inputs are connected to two NOT gates, which invert the inputs. The inverted inputs are then connected to an AND gate, which produces a high output only when both inputs are high. Finally, the output of the AND gate is connected to a NOT gate, which inverts the output. Therefore, the circuit behaves like an X-NOR gate.

Rate this question:

• 43.

### Which logic gate gives the complement of input?

• A.

AND Gate

• B.

OR Gate

• C.

NOT Gate

• D.

NAND Gate

• E.

NOR Gate

C. NOT Gate
Explanation
The NOT gate gives the complement of the input. It is a unary gate that takes a single input and produces the logical negation of that input as the output. In other words, if the input is true, the output will be false, and vice versa. This gate is commonly used in digital circuits to invert or negate the input signal.

Rate this question:

• 44.

### What is the missing output in the given truth table for X-NOR gate?

• A.

0

• B.

1

B. 1
Explanation
The missing output in the truth table for an X-NOR gate is 1. An X-NOR gate outputs 1 when both inputs are the same (either both 0 or both 1), and 0 when the inputs are different. Since the given truth table only has one input value (0), the missing output can be determined by applying the logic of the X-NOR gate, which results in the output being 1.

Rate this question:

• 45.

### What type of logic gate does this symbol represent?

• A.

AND Gate

• B.

OR Gate

• C.

NAND Gate

• D.

NOR Gate

• E.

X-OR Gate

A. AND Gate
Explanation
The symbol in question represents an AND gate. An AND gate is a logic gate that outputs a true (high) signal only when all of its inputs are true. In the given options, the symbol matches the representation of an AND gate.

Rate this question:

• 46.

### OR gate is equivalent to which operation?

• A.

• B.

Logical Multiplication

• C.

Logical Complement

• D.

Logical Division

• E.

Logical Subtraction

Explanation
An OR gate is equivalent to the logical addition operation. This is because an OR gate takes two inputs and outputs a true value if at least one of the inputs is true. In logical addition, the values being added are considered true if either one or both of them are true. Therefore, the OR gate and logical addition perform the same function of combining inputs and producing a true output if any of the inputs are true.

Rate this question:

• 47.

### AND gate is equivalent to which operation?

• A.

• B.

Logical Multiplication

• C.

Logical Complement

• D.

Logical Division

• E.

Logical Subtraction

B. Logical Multiplication
Explanation
The AND gate is equivalent to the logical multiplication operation. This is because the AND gate produces an output of true (1) only when both of its inputs are true (1). In logical multiplication, the result is true (1) only when both operands are true (1), otherwise, the result is false (0). Therefore, the AND gate and logical multiplication have the same behavior and can be considered equivalent operations.

Rate this question:

• 48.

### The following circuit is equivalent to which logic gate?

• A.

AND Gate

• B.

OR Gate

• C.

NOT Gate

• D.

X-OR Gate

• E.

X-NOR Gate

A. AND Gate
Explanation
The given circuit consists of two inputs connected to two parallel switches, and these switches are connected in series to an output. This configuration is characteristic of an AND gate. An AND gate produces an output only when both of its inputs are high (logic 1), and in this circuit, the output will be high only if both switches are closed, indicating that the inputs are both high. Therefore, the given circuit is equivalent to an AND gate.

Rate this question:

• 49.

### This is following circuit is equivalent to which logic gate?

• A.

AND Gate

• B.

OR Gate

• C.

NOT Gate

• D.

X-OR Gate

• E.

X-NOR Gate

B. OR Gate
Explanation
The given circuit consists of two inputs connected to two parallel branches, each containing a single switch. In an OR gate, the output is true if either or both of the inputs are true. In this circuit, if either switch is closed, the output will be true, making it equivalent to an OR gate.

Rate this question:

• 50.

### How many inputs can a NOT gate have?

• A.

1

• B.

2

• C.

3

• D.

4

• E.

5

A. 1
Explanation
A NOT gate, also known as an inverter, is a basic logic gate that has only one input. It takes the input signal and produces the opposite output signal. Therefore, a NOT gate can have only one input.

Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

• Current Version
• Apr 27, 2024
Quiz Edited by
ProProfs Editorial Team
• Jan 26, 2010
Quiz Created by
Gursharan_tatla

Related Topics