Computer — Chapter 3 (Digital Systems and Logic Design) – Short Question Answers
Q1. Differentiate between analog and digital signals with examples.
سوال: اینالاگ اور ڈیجیٹل سگنلز میں فرق مثالوں کے ساتھ بیان کریں۔
Answer:
Analog signals are continuous and can have infinite values, such as human voice or temperature. Digital signals are discrete and usually represented by 0 and 1, such as data in computers and calculators.
جواب:
اینالاگ سگنلز مسلسل ہوتے ہیں اور بے شمار قدریں لے سکتے ہیں، جیسے انسانی آواز یا درجہ حرارت۔ ڈیجیٹل سگنلز جدا جدا ہوتے ہیں اور عموماً 0 اور 1 سے ظاہر کیے جاتے ہیں، جیسے کمپیوٹر اور کیلکولیٹر میں ڈیٹا۔
Q2. What is the role of ADC and DAC in digital systems?
سوال: ڈیجیٹل سسٹمز میں ADC اور DAC کا کیا کردار ہے؟
Answer:
ADC converts analog signals into digital form so that computers can process them. DAC converts digital signals back into analog form so that they can be heard or displayed in the real world.
جواب:
ADC اینالاگ سگنلز کو ڈیجیٹل شکل میں تبدیل کرتا ہے تاکہ کمپیوٹر انہیں پروسیس کر سکے۔ DAC ڈیجیٹل سگنلز کو دوبارہ اینالاگ شکل میں بدلتا ہے تاکہ وہ حقیقی دنیا میں سنے یا دکھائے جا سکیں۔
Q3. Define Boolean algebra and mention its basic values.
سوال: بولین الجبرا کی تعریف کریں اور اس کی بنیادی قدریں لکھیں۔
Answer:
Boolean algebra is a branch of mathematics used to represent logical operations in digital systems. Its two basic values are 1 and 0, which represent True and False.
جواب:
بولین الجبرا ریاضی کی وہ شاخ ہے جو ڈیجیٹل سسٹمز میں منطقی عملیات کو ظاہر کرنے کے لیے استعمال ہوتی ہے۔ اس کی دو بنیادی قدریں 1 اور 0 ہیں جو بالترتیب True اور False کو ظاہر کرتی ہیں۔
Q4. Explain AND operation with truth table.
سوال: AND آپریشن کو ٹروتھ ٹیبل کے ساتھ بیان کریں۔
Answer:
AND operation gives output 1 only when all inputs are 1. If any input is 0, the output becomes 0.
Truth Table:
0 AND 0 = 0
0 AND 1 = 0
1 AND 0 = 0
1 AND 1 = 1
جواب:
AND آپریشن صرف اسی صورت میں 1 دیتا ہے جب تمام ان پٹس 1 ہوں۔ اگر ایک بھی ان پٹ 0 ہو تو آؤٹ پٹ 0 ہو جاتا ہے۔
ٹروتھ ٹیبل:
0 AND 0 = 0
0 AND 1 = 0
1 AND 0 = 0
1 AND 1 = 1
Q5. Draw and explain the working of OR gate with truth table.
سوال: OR گیٹ کی کارکردگی کو ٹروتھ ٹیبل کے ساتھ بیان کریں۔
Answer:
OR gate gives output 1 if at least one input is 1. It gives 0 only when all inputs are 0.
Truth Table:
0 OR 0 = 0
0 OR 1 = 1
1 OR 0 = 1
1 OR 1 = 1
جواب:
OR گیٹ اس وقت 1 دیتا ہے جب کم از کم ایک ان پٹ 1 ہو۔ یہ صرف اسی وقت 0 دیتا ہے جب تمام ان پٹس 0 ہوں۔
ٹروتھ ٹیبل:
0 OR 0 = 0
0 OR 1 = 1
1 OR 0 = 1
1 OR 1 = 1
Q6. What is NOT gate? Draw its symbol and truth table.
سوال: NOT گیٹ کیا ہے؟ اس کی علامت اور ٹروتھ ٹیبل بیان کریں۔
Answer:
NOT gate is also called an inverter. It reverses the input value, changing 1 into 0 and 0 into 1.
Truth Table:
0 → 1
1 → 0
جواب:
NOT گیٹ کو انورٹر بھی کہتے ہیں۔ یہ ان پٹ کی قدر کو الٹ دیتا ہے، یعنی 1 کو 0 اور 0 کو 1 میں تبدیل کر دیتا ہے۔
ٹروتھ ٹیبل:
0 → 1
1 → 0
Q7. Describe NAND gate and its truth table.
سوال: NAND گیٹ اور اس کی ٹروتھ ٹیبل بیان کریں۔
Answer:
NAND gate is the opposite of AND gate. It gives output 0 only when all inputs are 1, otherwise it gives 1.
Truth Table:
0 NAND 0 = 1
0 NAND 1 = 1
1 NAND 0 = 1
1 NAND 1 = 0
جواب:
NAND گیٹ AND گیٹ کے برعکس کام کرتا ہے۔ یہ صرف اسی وقت 0 دیتا ہے جب تمام ان پٹس 1 ہوں، ورنہ آؤٹ پٹ 1 ہوتا ہے۔
ٹروتھ ٹیبل:
0 NAND 0 = 1
0 NAND 1 = 1
1 NAND 0 = 1
1 NAND 1 = 0
Q8. Explain XOR gate with an example.
سوال: XOR گیٹ کو مثال کے ساتھ بیان کریں۔
Answer:
XOR gate gives output 1 when the two inputs are different and 0 when they are the same. For example, if A=1 and B=0, the output will be 1.
جواب:
XOR گیٹ اس وقت 1 دیتا ہے جب دونوں ان پٹس مختلف ہوں اور اگر دونوں ایک جیسے ہوں تو 0 دیتا ہے۔ مثال کے طور پر اگر A=1 اور B=0 ہو تو آؤٹ پٹ 1 ہوگا۔
Q9. What is a truth table? Why is it important?
سوال: ٹروتھ ٹیبل کیا ہے؟ یہ کیوں اہم ہے؟
Answer:
A truth table is a table that shows all possible input combinations and their corresponding outputs. It is important because it helps us understand and verify the working of logic gates and Boolean expressions.
جواب:
ٹروتھ ٹیبل ایک جدول ہے جو تمام ممکنہ ان پٹس اور ان کے متعلقہ آؤٹ پٹس کو ظاہر کرتی ہے۔ یہ اس لیے اہم ہے کیونکہ اس سے لاجک گیٹس اور بولین ایکسپریشنز کی کارکردگی کو سمجھنا اور جانچنا آسان ہوتا ہے۔
Q10. State and explain Commutative Law in Boolean algebra.
سوال: بولین الجبرا میں Commutative Law بیان کریں اور سمجھائیں۔
Answer:
Commutative Law states that changing the order of variables does not change the result. For example, A + B = B + A and A · B = B · A.
جواب:
Commutative Law کے مطابق متغیرات کی ترتیب بدلنے سے نتیجہ تبدیل نہیں ہوتا۔ مثال کے طور پر A + B = B + A اور A · B = B · A۔
Q11. Write De Morgan's theorems with examples.
سوال: ڈی مورگن کے تھیورمز مثالوں کے ساتھ لکھیں۔
Answer:
De Morgan's theorems are:
(A + B)' = A' · B'
(A · B)' = A' + B'
These theorems are used to simplify Boolean expressions.
جواب:
ڈی مورگن کے تھیورمز یہ ہیں:
(A + B)' = A' · B'
(A · B)' = A' + B'
یہ تھیورمز بولین ایکسپریشنز کو آسان بنانے کے لیے استعمال ہوتے ہیں۔
Q12. What are universal gates? Why are NAND and NOR called universal?
سوال: یونیورسل گیٹس کیا ہیں؟ NAND اور NOR کو یونیورسل کیوں کہتے ہیں؟
Answer:
Universal gates are those logic gates from which all other gates can be constructed. NAND and NOR are called universal because AND, OR, and NOT gates can be made using only NAND or only NOR gates.
جواب:
یونیورسل گیٹس وہ لاجک گیٹس ہیں جن سے دوسرے تمام گیٹس بنائے جا سکتے ہیں۔ NAND اور NOR کو یونیورسل اس لیے کہتے ہیں کیونکہ صرف NAND یا صرف NOR کی مدد سے AND، OR اور NOT گیٹس بنائے جا سکتے ہیں۔
Q13. Explain Distributive Law with an example.
سوال: Distributive Law کو مثال کے ساتھ بیان کریں۔
Answer:
Distributive Law in Boolean algebra is A · (B + C) = (A · B) + (A · C). It means one variable can be distributed over a bracket just like ordinary algebra.
جواب:
بولین الجبرا میں Distributive Law یہ ہے: A · (B + C) = (A · B) + (A · C)۔ اس کا مطلب ہے کہ ایک متغیر کو قوسین کے اندر عام الجبرا کی طرح تقسیم کیا جا سکتا ہے۔
Q14. What is the difference between AND gate and NAND gate?
سوال: AND گیٹ اور NAND گیٹ میں کیا فرق ہے؟
Answer:
AND gate gives output 1 only when all inputs are 1. NAND gate is the inverse of AND gate, so it gives 0 when all inputs are 1 and 1 otherwise.
جواب:
AND گیٹ صرف اسی وقت 1 دیتا ہے جب تمام ان پٹس 1 ہوں۔ NAND گیٹ AND کا الٹ ہے، اس لیے یہ اس حالت میں 0 دیتا ہے اور باقی تمام صورتوں میں 1 دیتا ہے۔
Q15. Give two real-life examples where logic gates are used.
سوال: دو حقیقی زندگی کی مثالیں دیں جہاں لاجک گیٹس استعمال ہوتے ہیں۔
Answer:
Logic gates are used in digital clocks and calculators. They are also used in automatic doors, alarm systems, and computer circuits.
جواب:
لاجک گیٹس ڈیجیٹل گھڑیوں اور کیلکولیٹرز میں استعمال ہوتے ہیں۔ یہ خودکار دروازوں، الارم سسٹمز اور کمپیوٹر سرکٹس میں بھی استعمال ہوتے ہیں۔
