Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Write a short note on binary arithmetic.

Answer»

Binary arithmetic is essential part of all digital computers and many other digital system.

1. Binary Addition: It is a key for binary subtraction, multiplication, division. The four rules of the binary addition are.

0 + 0 = 0

0 + 1 = 1

1 + 0 = 1

1 + 1 = 0 with a carry bit 1.

2. Binary Subtraction:

Subtraction and Borrow, these two words will be used very frequently for the binary subtraction.There are four rules of the binary substration. The four rules of the binary Subtraction are

0 – 0 = 0

0 – 1 = 0 with a borrow 1

1 – 0 = 1

1 – 1 = 0

2.

What is the radix or base of a number system? Give the radix of different number systems.

Answer»

The radix or base is the number of unique digits, including zero that a positional numeral system uses to represent numbers.

Number systemSymbolsRadix or base 
Decimal0,1,2,3,4,5,6,7,8,910
Binary0,12
Octal0,1,2,3,4,5,6,78
Hexadecimal0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F16
3.

Write a short note on the number of systems.

Answer»

It is a system of naming or representing numbers, as the decimal system or the binary system. The number system is broadly classified into two types. Namely, positional and non-positional number systems.

1. Non-positional number system:

A non-positional number system does not rely on the position of the number, but rather symbols to dictate the value of a number. Roman number is a non-positional number system. Non-positional number system cannot be used to do arithmetic calculations effectively.

2. Positional number system:

It is a system of writing numbers in which the position of a digit affects its value. The Decimal number system and Binary number system are examples of a positional number system. The positional number system can be used to do arithmetic calculations effectively.

4.

Write the sum of 1100(2) and 101(2)

Answer»

1100(2) + 101(2) = 10001(2)

5.

Convert 2567(10) = (?)(2) = (? )(8) = ( ? )(16)

Answer»

Binary equivalent of 2567(10) is 101000000111(2)

DivisorDividendRemainder
225671
212831
26411
23200
21600
2800
2400
2200
2100
251
220
211

Octal equivalent of 2567(10) is 5007(8) 2567(10) binary in broken into set of three bits is 101 000 000 111 5(8) 0(8) 0(8) 7(8)

Hexadecimal equivalent of 2567(10) is A07(16) 2567(10) binary is divided into set of four bits is 1010 0000 0111 A(16) 0(16) 7(16)

6.

What is EBCDIC code?

Answer»

EBCDIC (Extended Binary Coded Decimal Interchange Code is a binary code for alphabetic and numeric characters that IBM developed for its larger operating systems. In an EBCDIC file, each alphabetic or numeric character is represented by an 8-bit binary number. 256 possible characters (letters of the alphabet, numerals, and special characters) are defined.

7.

Name the two types of ASCII codes.

Answer»

ASCII 7 bit and ASCII 8 bit are the two types.

8.

What is non-positional number system?

Answer»

Anon-positional number system does not rely on the position of the number, but rather symbols to dictate the value of a number.

9.

Convert FACE(16) to decimal

Answer»

 

F = 15, A = 10 C = 12 E = 14

Place value4096256161
15101214
Product61440256019214

61440 + 2560 + 192 + 14 = 64206(10)

10.

Convert 357(8) to hexadecimal.

Answer»

Step 1 : 357(8) = 011 101 111(2)

Step 2: 11101111… group of 4 binary digits from LSB 1110(2) 1111(2)

Place value84218421
11101111
Product84208421

8 + 4 + 2 = 14(10) = E(16) 8 + 4 + 2+ 1 = 15(10) =F(16)

= EF(16)

11.

Convert 357(8) to binary.

Answer»

011 101 111(2)

12.

Convert 3257(8) to decimal

Answer»
Place value5126481
3257
Product1536128407

1536 + 128 + 40 + 7 = 1711(10)

13.

Convert 11001010(2) to hexadecimal.

Answer»
Place value84218421
11001010
Product84018020

8 + 4+1 = 13 in hexadecimal is D 8 + 2 = 10 in hexadecimal is A

14.

Convert 101110(2) to octal.

Answer»

Convert 101110(2) to octal.

Place value421421
101110
Product401420

                    4 + 1       4 + 2

                   = 5             = 6
                  = 56(8)     
15.

Mention any two positional number systems

Answer»

Decimal number system and Binary number system.

16.

Expand  BCD.

Answer»

Binary Coded Decimal.

17.

What is the weighted code in the binary number system?

Answer»

Weighted binary codes are those binary codes which obey the positional weight principle. Each position of the number represents a specific weight. Several systems of the codes are used to express the decimal digits 0 through 9. In these codes, each decimal digit is represented by a group of four bits.

18.

Convert 101101(2) to decimal.

Answer»
Place value32168421
101101
Product3208401

32 + 8 + 4 +1 =45

19.

Write the hexadecimal equivalent of decimal 345.

Answer»
DivisorDividendRemainder
163459
16215
1611
20.

Why binary number code is used in computers?

Answer»

The term “binary” means “two”. Thus, the binary number system is a system of numbers based on two possible digits – 0 and 1. Each binary digit, or “bit”, is a single 0 or 1, which directly corresponds to a single “switch” in a circuit. Binary codes are used in computers because they are used to represent information in the digital world.

21.

What is octal number system?

Answer»

A positional number system that has 8 digits which are 0,1,2,3,4,5,6 and 7 is called octal number system. It is also called a base 8.

22.

What is the weight of the LSB in the octal number system?

Answer»

The weight of the LSB of an octal number system is 0.

23.

Define  LSB.

Answer»

The least weight of the digit in a number is called Least Significant Bit.

24.

What is the hexadecimal number system?

Answer»

A positional number system that has 16 digits which are 0,1,2,3,4,5,6,7,8,9, A, B, C, D, E, and F is called hexadecimal number system which is also called as base 16.

25.

What is the weight of the MSB of the hexadecimal number system?

Answer»

The weight of the MSB of the hexadecimal number system is 15.

26.

Define MSB.

Answer»

The highest weight of the digit in a number is called Most Significant Bit.

27.

Expand BIT.

Answer»

Binary digit.

28.

Write the different types of positional number system.

Answer»
  • Decimal number system
  • Binary number system.
  • Octal number system.
  • Hexadecimal number system.
29.

What do you mean by the base of the number system?

Answer»

The radix or base is the number of unique digits, including zero that a positional numeral system uses to represent numbers.

30.

What are computer codes? Give an example.

Answer»

It is a set of symbols for representing characters. For example, most computers use ASCII codes to represent characters.

31.

A binary number system is used in computers. Why?

Answer»

Computer systems use electronic circuits which exist in only one of two states i.e., on a state or off state. The binary number system is a method of representing numbers that count by using combinations of only two numerals: zero (0) and one (1).

32.

How is a number represented in positional number system? Give an example.

Answer»

The decimal number 259 is represented as

2 x 102 + 5 x 101 + 9 x 100

= (2 x 100) + (5 x 10) +(9 x 1)

= 200 + 50 + 9 = 259

33.

What is the different between non-positional number system and positional number system?

Answer»

The non-positional number system consists of different symbols and each of these symbols represents a value irrespective of its position. In positional number system, each digit gets its value by its position in the digits.

34.

How are positive or negative signs of a number represented in the binary system?

Answer»

Add an extra digit at the front of the binary number, to indicate whether the number is positive or negative. This digit is called a sign bit.

35.

How is negative number represented in binary number system?

Answer»

A negative number is represented in binary number system by adding an extra digit 1 at the front of binary number.

36.

Give the drawback of non-positional number system.

Answer»

Non-positional number system cannot be used to do arithmetic calculations effectively.

37.

What is positional number system?

Answer»

It is a system of writing numbers in which the position of a digit affects its value.

38.

What is the binary number system?

Answer»

A positional number system that has only 2 digits which are 0 and 1, is called a binary number system it is also called as base 2.

39.

What is the Decimal number system?

Answer»

The positional number system that has 10 digits which are 0,1,2,3,4,5,6,7,8 and 9 is called decimal number system. Decimal is also called base 10 because it has 10 digits.

40.

What are non-weighted codes? Give an example.

Answer»

In this type of binary code, the positional weights are not assigned. The examples of non weighted codes are Excess-3 code and Gray code.

41.

Write the binary equivalent of decimal 61.

Answer»
DivisorDividendRemainder
2611
2300
2151
271
231
42.

Write the octal equivalent of decimal 65.

Answer»
DivisorDividendRemainder
81655
8204
822
43.

What is 1’s complement? Give an example.

Answer»

Representing a signed number with 1’s complement is done by changing all the bits that are 1 to 0 and all the bits that are 0 to 1.

For example, 1’s complement of 1010100 is 0101011.

44.

What is two’s complement?

Answer»

Representing a signed number with 2’s complement is done by adding 1 to the 1’s complement representation of the number.

45.

Expand EBCDIC?

Answer»

Extended Binary Coded Decimal Interchange Code.

46.

Write the expansion of ASCII.

Answer»

American Standard Code of Information Interchange.

47.

What is one’s complement?

Answer»

Representing a signed number with 1’s complement is done by changing all the bits that are 1 to 0 and all the bits that are 0 to 1.

48.

Write the binary equivalent of decimal

Answer»

28(10) = 11100(2)

DivisorDividendRemainder
2280
2140
271
231
211

25(10) = 01(2)

multipliermultiplicandproductCarry
2.25.500
2.50.001
49.

Write a note on ASCII and EBCDIC code.

Answer»

1. ASCII code: 

ASCII (American Standard Code for Information Interchange) is the most widely used coding system to represent data. ASCII is used on many personal computers and minicomputers. ASCII is a 7-bit code that permits 27 = 128 distinct characters. The 128 different combinations that can be represented in 7 bits are plenty to allow for all the letters, numbers and special symbols. An eight-bit was added. This allowed an additional 128 characters to be represented. The extra 128 combinations are used for symbols such as Ç ü è ©, ®, Æ, etc.

2. EBCDIC code:

(Extended Binary Coded Decimal Interchange Code) Pronounced “ebsuh-****.” The binary code for text as well as communications and printer control from IBM. This data code originated with the System/360 and is still used in IBM mainframes and most IBM midrange computers. It is an 8-bit code

(256 combinations) that stores one alphanumeric character or two decimal digits in a byte.

50.

Write a note on binary system complements.

Answer»

Complements are used in the digital computers in order to simplify the subtraction operation and for logical manipulations.

The two types of complements are 1’s complement and 2’s complement.

1. 1’s complement: 

The 1 ’s complement of a number is found by changing all 1’s to 0’s and all 0’s to 1’s. This is called as taking complement or 1’s complement. For example, 10101 is 01010 in 1’s complement.

2. 2’s complement:

The 2’s complement of binary number is obtained by adding 1 to the Least Significant Bit (LSB) of 1 ’s complement of the number. 2’s complement = 1’s complement + 1

For example, 10101(2) 1’s complement is 01010 and 01010 + 1 = 01011 is 2’s complement.