html

Computer — Chapter 2 (Number Systems) – Short Question Answers

Q1. What is the importance of binary number system in computers?

سوال: کمپیوٹر میں بائنری نمبر سسٹم کی اہمیت کیا ہے؟

Answer:
Binary number system is important because computers operate using electronic signals that have two states (ON and OFF). These states are represented by binary digits 1 and 0.

جواب:
بائنری نمبر سسٹم اس لیے اہم ہے کیونکہ کمپیوٹر برقی سگنلز پر کام کرتے ہیں جن کی دو حالتیں ہوتی ہیں (آن اور آف)۔ ان حالتوں کو 1 اور 0 سے ظاہر کیا جاتا ہے۔

Q2. Explain the place value in binary number system with an example.

سوال: بائنری نمبر سسٹم میں پلیس ویلیو کی وضاحت مثال کے ساتھ کریں۔

Answer:
In binary system, each position represents a power of 2. For example, in binary number 1011 the place values are 2³, 2², 2¹, and 2⁰.

جواب:
بائنری سسٹم میں ہر جگہ 2 کی طاقت کو ظاہر کرتی ہے۔ مثال کے طور پر 1011 میں پلیس ویلیوز 2³، 2²، 2¹ اور 2⁰ ہوتی ہیں۔

Q3. Write the steps to convert a decimal number to binary.

سوال: ڈیسیمل نمبر کو بائنری میں تبدیل کرنے کے مراحل لکھیں۔

Answer:
Divide the decimal number repeatedly by 2 and record the remainders. The binary number is obtained by reading the remainders from bottom to top.

جواب:
ڈیسیمل نمبر کو بار بار 2 سے تقسیم کریں اور باقیات لکھتے جائیں۔ باقیات کو نیچے سے اوپر کی طرف پڑھنے سے بائنری نمبر حاصل ہوتا ہے۔

Q4. Convert decimal 45 to binary and explain the process.

سوال: ڈیسیمل نمبر 45 کو بائنری میں تبدیل کریں اور طریقہ بیان کریں۔

Answer:
45 ÷ 2 repeatedly gives remainders. Reading the remainders from bottom to top gives 101101. Therefore, decimal 45 equals binary 101101.

جواب:
45 کو بار بار 2 سے تقسیم کرنے پر باقیات حاصل ہوتی ہیں۔ باقیات کو نیچے سے اوپر پڑھنے پر 101101 بنتا ہے، لہٰذا 45 کا بائنری 101101 ہے۔

Q5. What is the difference between octal and hexadecimal number systems?

سوال: اوکٹل اور ہیکسا ڈیسیمل نمبر سسٹم میں کیا فرق ہے؟

Answer:
Octal is base 8 and uses digits from 0–7. Hexadecimal is base 16 and uses digits 0–9 and letters A–F.

جواب:
اوکٹل سسٹم کی بنیاد 8 ہے اور اس میں 0 سے 7 تک ہندسے استعمال ہوتے ہیں جبکہ ہیکسا ڈیسیمل سسٹم کی بنیاد 16 ہے اور اس میں 0 سے 9 اور A سے F تک علامات استعمال ہوتی ہیں۔

Q6. Explain how to convert binary to octal with an example.

سوال: بائنری کو اوکٹل میں تبدیل کرنے کا طریقہ مثال کے ساتھ بیان کریں۔

Answer:
Binary digits are grouped into sets of three from right to left. Each group is then converted into its octal equivalent.

جواب:
بائنری ہندسوں کو دائیں سے بائیں تین تین کے گروپ میں تقسیم کیا جاتا ہے اور ہر گروپ کو اوکٹل عدد میں تبدیل کیا جاتا ہے۔

Q7. Why is hexadecimal preferred for representing large binary numbers?

سوال: بڑے بائنری نمبروں کو ظاہر کرنے کے لیے ہیکسا ڈیسیمل کیوں استعمال کیا جاتا ہے؟

Answer:
Hexadecimal is preferred because it represents large binary numbers in a shorter and more readable form.

جواب:
ہیکسا ڈیسیمل اس لیے استعمال کیا جاتا ہے کیونکہ یہ بڑے بائنری نمبروں کو مختصر اور آسان شکل میں ظاہر کرتا ہے۔

Q8. What is ASCII? Give two examples of ASCII codes.

سوال: ASCII کیا ہے؟ ASCII کوڈ کی دو مثالیں دیں۔

Answer:
ASCII stands for American Standard Code for Information Interchange. It is used to represent characters in computers. For example, A = 65 and B = 66.

جواب:
ASCII کا مطلب American Standard Code for Information Interchange ہے۔ یہ کمپیوٹر میں حروف کو ظاہر کرنے کے لیے استعمال ہوتا ہے۔ مثال کے طور پر A = 65 اور B = 66۔

Q9. Differentiate between ASCII and Unicode.

سوال: ASCII اور Unicode میں فرق بیان کریں۔

Answer:
ASCII represents only 128 characters, mainly English letters and symbols, while Unicode supports a very large number of characters from different languages.

جواب:
ASCII صرف 128 حروف اور علامات کو ظاہر کرتا ہے جبکہ Unicode دنیا کی مختلف زبانوں کے لاکھوں حروف کو ظاہر کرنے کی صلاحیت رکھتا ہے۔

Q10. Explain UTF-8 encoding with one example.

سوال: UTF-8 انکوڈنگ کی وضاحت ایک مثال کے ساتھ کریں۔

Answer:
UTF-8 is a Unicode encoding system that represents characters using one to four bytes. For example, the letter “A” is represented as 65.

جواب:
UTF-8 ایک یونیکوڈ انکوڈنگ سسٹم ہے جو حروف کو ایک سے چار بائٹس میں ظاہر کرتا ہے۔ مثال کے طور پر حرف “A” کو 65 سے ظاہر کیا جاتا ہے۔

Q11. What is two's complement? Why is it used?

سوال: ٹو کمپلیمنٹ کیا ہے؟ یہ کیوں استعمال کیا جاتا ہے؟

Answer:
Two's complement is a method used to represent negative numbers in binary system. It simplifies binary subtraction operations in computers.

جواب:
ٹو کمپلیمنٹ بائنری سسٹم میں منفی نمبروں کو ظاہر کرنے کا طریقہ ہے۔ یہ کمپیوٹر میں بائنری تفریق کو آسان بناتا ہے۔

Q12. Explain how to find two's complement of a negative number.

سوال: کسی منفی عدد کا ٹو کمپلیمنٹ کیسے نکالا جاتا ہے؟

Answer:
First find the one's complement by inverting all bits, then add 1 to the result to obtain the two's complement.

جواب:
سب سے پہلے تمام بٹس کو الٹ کر ونز کمپلیمنٹ حاصل کریں، پھر اس میں 1 جمع کریں تاکہ ٹو کمپلیمنٹ حاصل ہو جائے۔

Q13. What is the range of signed 8-bit integers in two's complement?

سوال: ٹو کمپلیمنٹ میں 8-بٹ سائنڈ انٹیجر کی حد کیا ہوتی ہے؟

Answer:
The range of signed 8-bit integers is from −128 to +127.

جواب:
8-بٹ سائنڈ انٹیجر کی حد −128 سے +127 تک ہوتی ہے۔

Q14. Describe the steps of binary multiplication with a small example.

سوال: بائنری ضرب کے مراحل ایک چھوٹی مثال کے ساتھ بیان کریں۔

Answer:
Binary multiplication is similar to decimal multiplication. Each bit of the multiplier multiplies the multiplicand and the partial results are added together.

جواب:
بائنری ضرب کا طریقہ ڈیسیمل ضرب جیسا ہوتا ہے۔ ملٹی پلائر کے ہر بٹ کو ملٹی پلکینڈ سے ضرب دے کر حاصل شدہ نتائج کو جمع کیا جاتا ہے۔

Q15. Write one advantage of using two's complement over one's complement.

سوال: ونز کمپلیمنٹ کے مقابلے میں ٹو کمپلیمنٹ کا ایک فائدہ لکھیں۔

Answer:
Two's complement simplifies arithmetic operations and removes the problem of having two representations of zero.

جواب:
ٹو کمپلیمنٹ حسابی عمل کو آسان بناتا ہے اور صفر کی دو مختلف نمائندگیوں کے مسئلے کو ختم کرتا ہے۔