2 Lecture
CS302
Midterm & Final Term Short Notes
Number Systems
Number systems are a set of symbols and rules used to represent and manipulate quantities. The most common number systems are decimal, binary, octal, and hexadecimal. Understanding number systems is crucial in various fields, especially in compu
Important Mcq's
Midterm & Finalterm Prepration
Past papers included
Download PDF
Which number system uses base 2? A) Decimal B) Binary C) Octal D) Hexadecimal Answer: B
How many digits are there in binary system? A) 8 B) 10 C) 2 D) 16 Answer: C
What is the base of the octal number system? A) 2 B) 8 C) 10 D) 16 Answer: B
Which number system uses the digits 0-9 and letters A-F? A) Decimal B) Binary C) Octal D) Hexadecimal Answer: D
What is the value of the binary number 1101 in decimal form? A) 5 B) 7 C) 9 D) 13 Answer: D
What is the value of the octal number 73 in decimal form? A) 47 B) 57 C) 63 D) 83 Answer: B
What is the value of the hexadecimal number AC in decimal form? A) 170 B) 172 C) 174 D) 176 Answer: B
Which number system is used to represent colors in HTML? A) Decimal B) Binary C) Octal D) Hexadecimal Answer: D
What is the process of converting a decimal number to a binary number? A) Repeatedly dividing the decimal number by 10 B) Repeatedly dividing the decimal number by 2 C) Repeatedly dividing the decimal number by 8 D) Repeatedly dividing the decimal number by 16 Answer: B
What is the process of converting a binary number to a decimal number? A) Multiplying each digit of the binary number by 2 and summing the products B) Multiplying each digit of the binary number by 8 and summing the products C) Multiplying each digit of the binary number by 10 and summing the products D) Multiplying each digit of the binary number by 16 and summing the products Answer: A
Subjective Short Notes
Midterm & Finalterm Prepration
Past papers included
Download PDF
What is a number system? Answer: A number system is a set of symbols and rules used to represent and manipulate quantities.
What is the decimal number system? Answer: The decimal number system is a base-10 number system that uses ten symbols (0-9) to represent quantities.
What is the binary number system? Answer: The binary number system is a base-2 number system that uses two symbols (0 and 1) to represent quantities.
What is the octal number system? Answer: The octal number system is a base-8 number system that uses eight symbols (0-7) to represent quantities.
What is the hexadecimal number system? Answer: The hexadecimal number system is a base-16 number system that uses sixteen symbols (0-9 and A-F) to represent quantities.
Why is understanding number systems important in computer science? Answer: Understanding number systems is important in computer science because digital data is stored and processed using binary numbers.
How can you convert a binary number to a decimal number? Answer: To convert a binary number to a decimal number, you can multiply each digit of the binary number by its corresponding power of 2 and then sum the products.
How can you convert a decimal number to a binary number? Answer: To convert a decimal number to a binary number, you can repeatedly divide the decimal number by 2 and then record the remainders.
What is the process of converting a decimal number to an octal number? Answer: To convert a decimal number to an octal number, you can repeatedly divide the decimal number by 8 and then record the remainders.
What is the process of converting a decimal number to a hexadecimal number? Answer: To convert a decimal number to a hexadecimal number, you can repeatedly divide the decimal number by 16 and then record the remainders, substituting any remainders greater than 9 with letters A-F.