What is the 2's complement of the binary number 101110?
- A.010011
- B.010010
- C.110001
- D.010001
Correct answer
Explanation
The correct answer is B, 010010. The 2's complement of a binary number is found in two steps: flip every bit to get the 1's complement, then add 1. Flipping 101110 gives 010001, and 010001 + 1 = 010010. A quick check confirms it: 101110 is 46 and 010010 is 18, and 46 + 18 = 64, which is 2⁶ for a six-bit number, exactly as it should be. Computers use the 2's complement to store negative numbers and to do subtraction by addition, which keeps their circuits simple. A shortcut also works: copy the bits from the right up to and including the first 1, then flip all the rest. A is wrong because 010011 adds 2 instead of 1 to the 1's complement. C is wrong because 110001 leaves the leftmost bit unflipped. D is wrong because 010001 is only the 1's complement; the final +1 is missing. Exam tip: 2's complement = flip all bits, then add 1; a number plus its 2's complement equals 2ⁿ.
Practice Questions
View allWhich language uses the symbolic representation of machine codes needed to program a particular processor or processor family?
- A.Machine Language
- B.Assembly Language
- C.High-Level Language
- D.All of the above
Show answer
Assembly language replaces the binary machine codes of a processor with short symbols called mnemonics, such as MOV, ADD and JMP.
Read the full explanation →Which one of the following is the characteristic of Artificial Intelligence ?
- A.Replicates human decision making
- B.Stores relevant information
- C.Stores similar kind of data for a specific purpose
- D.Allows user to interact with media
Show answer
Artificial Intelligence is the ability of a machine to perform tasks that normally need human intelligence, such as reasoning, learning and taking decisions.
Read the full explanation →What is an interactive combination of text, graphics, video, audio and images termed as ?
- A.JPEG
- B.Multimedia
- C.AVA
- D.PNG
Show answer
Multimedia means using several forms of media, such as text, graphics, audio, video, images and animation, together, often in a way the user can interact with.
Read the full explanation →Which among the following is a malicious software?
- A.Hacking
- B.Password Cracking
- C.Trojan Horse
- D.Firewall
Show answer
A Trojan is a program that looks useful or harmless but secretly carries harmful code, so it is a piece of malicious software, or malware.
Read the full explanation →Which one of the following is not an application software?
- A.Spreadsheet
- B.AutoCAD
- C.MS PowerPoint
- D.Linker
Show answer
A linker is system software, a programming tool that joins compiled pieces of code into one program that can run; it does not do a task for the end user.
Read the full explanation →