Module 2 - Questions

.docx
School
Thomas Edison State College**We aren't endorsed by this school
Course
CTR 2120
Subject
Computer Science
Date
Dec 22, 2024
Pages
4
Uploaded by CoachPelican4782
1Module 2: QuestionsJeremiah GriggsCTR-2120-OL009: PLCDr. Mahmoud M. Al-Kofahi27 Oct 2024
Background image
2Chapter 3: Review1.Convert each of the following binary numbers to decimal numbers:a.10- 2b.100– 4c.111 - 7d.1011 - 11e.1100 - 12f.10010 - 18g.10101 - 21h.11111- 31i.11001101 - 205j.11100011 - 2272.Convert each of the following decimal numbers to binary numbers:a.7 - 111b.19 - 10011c.28 - 11100d.46 - 101110e.57- 111001f.86- 1010110g.94- 1011110h.112- 1110000i.148- 10010100j.230- 111001103.Convert each of the following octal numbers to decimal numbers:a.36- 30b.104- 68c.120- 80d.216- 142e.360- 240f.1516- 8464.Convert each of the following octal numbers to binary numbers:a.74 - 111100b.130- 1011000c.250- 10101000d.1510- 1101001000e.2551- 10101101001f.2634- 101100111005.Convert each of the following hexadecimal numbers to decimal numbers:a.5A- 90
Background image
3b.C7- 199c.9B5- 2485d.1A6- 4226.Convert each of the following hexadecimal numbers to binary numbers:a.4C - 01001100b.E8- 11101000c.6D2- 011011010010d.31B- 0011000110117.Convert each of the following decimal numbers to BCD:a.146– 0001 0100 0110b.389– 0011 1000 1001c.1678– 0001 0110 0111 1000d.2502– 0010 0101 0000 00108.What is the most important characteristic of the Gray code?Each transition from only affects 1 bit. In binary each transition from number to number could involve all 4 bits potentially. Which can lead to errors. By using Gray code only, the error potential is lowered since only 1 bit at a time changes.9.What makes the binary system so applicable to computer circuits?There are only 2 positions. 0 or 1. Which can be related to a variety of parameters. Typically voltage (0V or +5V). this ease of assignment works well with values and assigning locations10. Define the following as they apply to the binary memory locations or registers:a.Bit– each individual number of a binary numberb.Byte– a grouping of 8 bitsc.Word– a grouping of 2 or more bytesd.LSB– least significant bit. Represents the smallest valuee.MSB– Most significant bit. Represents the largest value11. State the base used for each of the following number systems:a.Octal – base of 8b.Decimal– base of 10c.Binary – base of 2d.Hexadecimal– base of 1613. Explain the difference between the 1’s complement of a number and the 2’s complement.
Background image
416. Add the following binary numbers:a.110 + 111- 1101b.101 + 011- 1000c.1100 + 1011- 1011118. Multiply the following binary numbers:a.110 × 110- 100100b.010 × 101- 1010c.101 × 11- 111119. Divide the following unsigned binary numbers:a.1010 ÷ 10- 101b.1100 ÷ 11- 100c.110110 ÷ 10- 11011Chapter 3 Problems1.The following binary PLC coded information is to be programmed using the hexadecimal code. Convert each piece of binary information to the appropriate hexadecimal code for entry into the PLC from the keyboard.a.0001 1111– 1Fb.0010 0101- 25c.0100 1110– 4Ed.0011 1001- 392.Express the decimal number 18 in each of the following number codes:a.Binary- 10010b.Octal- 22c.Hexadecimal- 12d.BCD– 0001 1000 BCD4.Subtract 1011 – 110a.101
Background image