What is the 1's complement of 0000 1111 0010 1101 number?
- A.1111 1100 1010 1100
- B.1111 0000 1101 0010
- C.1111 0000 0010 1101
- D.1001 0010 1010 1100
Correct answer
Explanation
The correct answer is B, 1111 0000 1101 0010. The ones complement of a binary number is found by simply inverting every bit, turning each 0 into 1 and each 1 into 0. Taking the given number group by group, 0000 becomes 1111, 1111 becomes 0000, 0010 becomes 1101 and 1101 becomes 0010, which gives 1111 0000 1101 0010. Computers use this idea because subtraction can then be done with addition: the twos complement, used to store negative numbers, is the ones complement plus one. A is wrong because several of its bits are not the inverse of the matching bits. C is wrong because its last eight bits repeat the original number instead of inverting it. D is wrong because its first group should be 1111, not 1001. Exam tip: ones complement means invert every bit; twos complement means invert every bit and add 1.
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 →