edited by
975 views

1 Answer

0 votes
0 votes

The given weighted code is self-complementary(the code of the number and the code of  $9's$  complement of the number are one's complement to each other).      Refer: Self-complementary code

Which means the representation of decimal number 5 can be obtained by finding the representation of  $9's$  complement of  $(5)_{10}$  i.e.  $(4)_{10}$, and then we find one's complement of obtained representation.

Representation of  $(4)_{10}$  in the given weighted code:  $0100$

Now, one's complement of  $0100$  is our answer i.e.   $1011$  is the  $6$  $4$  $2$  $-3$ code of $(5)_{10}$

Option C is correct.

Related questions

0 votes
0 votes
1 answer
1
go_editor asked Mar 27, 2020
4,640 views
Which statement is wrong If linked origin $\neq$ translated origin, relocation must be performed by the linkerIf load $\neq$ linked origin, the loader must perform reloca...
0 votes
0 votes
0 answers
2
go_editor asked Mar 27, 2020
758 views
Tasks done in parsing are:Check the validity of a source stringDetermine the syntactic structure of a source stringBoth A and BNone of these
0 votes
0 votes
1 answer
3
go_editor asked Mar 27, 2020
361 views
$\text{YACC}$ builds up _____parsing table.$\text{LALR}$$\text{LR}$$\text{SLR}$$\text{LLR}$
2 votes
2 votes
1 answer
4
go_editor asked Mar 27, 2020
1,183 views
The action of passing the source program into the proper syntactic class is known as:Syntax analysisLexical analysisInterpretation analysisUniform symbol generation