PrajaPrep

کمپیوٹر آگاہی · 8 منٹ

کمپیوٹر کی بنیادی باتیں: ہارڈویئر، میموری، اکائیاں

Computer fundamentals: hardware, memory, units

سبق

کمپیوٹر ان پٹ لیتا ہے، اسے CPU میں پراسیس کرتا ہے اور پھر آؤٹ پٹ دیتا ہے۔ CPU کے اندر تین حصے ہوتے ہیں۔ ALU حساب اور منطق کا کام کرتا ہے۔ کنٹرول یونٹ (CU) کاموں کی رہنمائی کرتا ہے۔ رجسٹر مشین کا تیز ترین ذخیرہ ہیں۔

A computer takes input, processes it in the CPU and gives output. Inside the CPU sit three parts. The ALU does arithmetic and logic, the control unit (CU) directs the operations, and the registers are the fastest storage in the machine.

میموری رفتار کے حساب سے رکھی جاتی ہے۔ تیز ترین پہلے: رجسٹر، پھر کیش، پھر RAM، پھر SSD یا ہارڈ ڈسک جیسا ثانوی ذخیرہ۔ RAM عارضی ہے، بجلی جانے پر اس کا ڈیٹا ختم ہو جاتا ہے۔ ROM مستقل ہے اور آغاز کی ہدایات رکھتی ہے۔ انہی ہدایات کو BIOS یا فرم ویئر کہتے ہیں۔

Memory is arranged by speed, fastest first: registers, then cache, then RAM, then secondary storage such as an SSD or a hard disk. RAM is volatile, so it loses its data when the power goes. ROM is non-volatile and holds the start-up instructions, which is the BIOS or firmware.

اکائیوں میں 1 نبل 4 بٹ اور 1 بائٹ 8 بٹ ہے۔ KB سے MB، GB، TB، PB تک ہر قدم 1024 سے ضرب ہے۔ عددی نظام میں بائنری کی بنیاد 2، آکٹل 8، اعشاری 10 اور ہیکسا ڈیسیمل 16 ہے۔ ہیکسا ڈیسیمل میں ہندسے 0 سے 9 اور A سے F تک ہیں۔

In units, 1 nibble is 4 bits and 1 byte is 8 bits, and each step from KB to MB to GB to TB to PB is a multiplication of 1024. In number systems, binary is base 2, octal is 8, decimal is 10 and hexadecimal is 16, with digits 0 to 9 and A to F.

کمپیوٹر کے ان پٹ اور آؤٹ پٹ آلات

Input and output devices of a computer

اس سبق کے پہلے صفحے پر سی پی یو، میموری اور ڈیٹا کی اکائیاں پہلے آ چکی ہیں۔ یہ اضافہ ان آلات پر رہتا ہے جو کمپیوٹر کو کھلاتے ہیں، اور جو کام باہر لاتے ہیں۔ رجسٹر، ریم، یا کلو بائٹ سے پیٹا بائٹ تک 1024 کے قدم اس کٹ کے طور پر پھر نہیں پڑھاتا۔

An earlier page on this lesson already walks through the CPU, memory and units of data. This addition stays with the devices that feed a computer and the devices that bring work back out. It does not reteach registers, RAM, or the 1024 steps from kilobyte to petabyte as if they were this cut.

ان پٹ آلہ ڈیٹا کمپیوٹر میں بھیجتا ہے۔ عام درسی فہرست میں کی بورڈ اور ماؤس، سکینر، مائیکروفون، اور کچھ خاص ریڈر شامل ہیں۔ ایم آئی سی آر، یا مقناطیسی سیاہی حرف شناسی، بینکوں کے چیک پر حروف پڑھنے کا عام طریقہ ہے۔ او سی آر، یا بصری حرف شناسی، چھپی یا لکھی عبارت مشین میں پڑھتی ہے۔ او ایم آر، یا بصری نشان شناسی، پہلے سے چھپے ورق پر نشان پڑھتی ہے، عام مثال امتحانی جوابی ورق ہے۔ بار کوڈ ریڈر لیبل پر چھپی بار پڑھتا ہے۔ آؤٹ پٹ آلہ نتائج باہر بھیجتا ہے۔ مانیٹر دکھاتا ہے، اسپیکر آواز چلاتا ہے، پلاٹر نقشے یا منصوبوں جیسا بڑا خطی کام کھینچتا ہے، اور پرنٹر کاغذ پر نشان ڈالتا ہے۔ درسی کتابیں پرنٹروں کو اکثر امپیکٹ پرنٹر، جیسے ڈاٹ میٹرکس جو صفحے کو ضرب لگاتا ہے، اور نان امپیکٹ پرنٹر، جیسے انک جیٹ اور لیزر پرنٹر جو صفحے کو نہیں مارتے، میں بانٹتی ہیں۔ پھندا یہ ہے ایم آئی سی آر، او سی آر اور او ایم آر کو ایک ہی ریڈر سمجھنا، یا مانیٹر کو ان پٹ آلہ کہنا، یا سی پی یو اور میموری کو اس فہرست کے طور پر پھر پڑھانا۔

An input device sends data into the computer. The usual school list includes the keyboard and the mouse, a scanner, a microphone, and a few specialised readers. MICR, or magnetic ink character recognition, is the usual way banks read the characters on a cheque. OCR, or optical character recognition, reads printed or written text into a machine. OMR, or optical mark recognition, reads marks on a pre-printed sheet, the usual example being an exam answer sheet. A barcode reader reads the printed bars on a label. An output device sends results out. A monitor displays, a speaker plays sound, a plotter draws large line work such as maps or plans, and a printer puts marks on paper. School books often split printers into impact printers, such as a dot-matrix printer that strikes the page, and non-impact printers, such as inkjet and laser printers, which do not strike the page. The trap is to treat MICR, OCR and OMR as if they were the same reader, or to call a monitor an input device, or to reteach the CPU and memory as if they were this list.

پرچے پوچھتے ہیں کون سا آلہ ان پٹ یا آؤٹ پٹ ہے، ایم آئی سی آر، او سی آر اور او ایم آر کیا پڑھتے ہیں، اور امپیکٹ پرنٹر لیزر پرنٹر سے کیسے الگ ہے۔ سی پی یو کے نام پر نہیں رکنا چاہیے۔

Papers ask which device is input or output, what MICR, OCR and OMR each read, and how an impact printer differs from a laser printer. They should not stop at naming the CPU.

کی بورڈ، ماؤس، سکینر، ایم آئی سی آر، او سی آر، او ایم آر اور بار کوڈ ریڈر عام ان پٹ آلات ہیں۔ مانیٹر، اسپیکر، پلاٹر اور پرنٹر عام آؤٹ پٹ آلات ہیں۔ ایم آئی سی آر چیک کے حروف، او سی آر عبارت، او ایم آر ورق پر نشان پڑھتے ہیں۔ ڈاٹ میٹرکس امپیکٹ پرنٹر ہے؛ انک جیٹ اور لیزر نان امپیکٹ ہیں۔

Keyboard, mouse, scanner, MICR, OCR, OMR and barcode readers are usual input devices. Monitor, speaker, plotter and printer are usual output devices. MICR reads cheque characters; OCR reads text; OMR reads marks on a sheet. A dot-matrix printer is an impact printer; inkjet and laser printers are non-impact.

ایم آئی سی آر، او سی آر اور او ایم آر کو ایک ہی ریڈر سمجھنا، مانیٹر کو ان پٹ آلہ کہنا، یا سی پی یو اور میموری کو اس فہرست کے طور پر پھر پڑھانا۔

Treating MICR, OCR and OMR as the same reader, calling a monitor an input device, or reteaching the CPU and memory as if they were this list.

پہلے سبق میں ALU اور کنٹرول یونٹ والا CPU، RAM بمقابلہ ROM، میموری اکائیوں کے درمیان 1024 قدم، اور MICR، OCR، OMR جیسے عام ان پٹ اور آؤٹ پٹ آلات پہلے موجود ہیں۔ وہ باتیں پہلے سے معلوم استعمال ہو سکتی ہیں۔ یہ کٹ انہیں نیا نہیں بیان کرتی۔ زبان کے مترجموں، اور اونچی سطح کی زبانوں کی عام درسی مثالوں پر رہتی ہے۔

The earlier lesson already has the CPU with the ALU and the control unit, RAM against ROM, the 1024 steps between memory units, and the usual input and output devices such as MICR, OCR and OMR. Those points may be used as already known. This cut does not retell them as if they were new. It stays with language translators, and with the usual school examples of high-level languages.

اس کٹ کے عام درسی بیان میں اسمبلر اسمبلی زبان کو مشین زبان میں ترجمہ کرتا ہے۔ کمپائلر پوری اونچی سطح کی پروگرام کو چلانے سے پہلے مشین زبان میں ترجمہ کرتا ہے، اور عام طور پر آبجیکٹ پروگرام دیتا ہے۔ انٹرپریٹر پروگرام کو سطروں میں ترجمہ کر کے چلاتا ہے، عام درسی بیان میں الگ آبجیکٹ پروگرام کے بغیر۔ اونچی سطح کی زبانوں کی عام درسی مثالوں میں FORTRAN، COBOL، C، Java اور Python شامل ہیں؛ بعد کا سرکاری زبان نام، یا بعد کی مقبول زبان، فہرست ہلی ہو تو پڑھنی چاہیے، واحد کلید نہیں جمانی چاہیے۔ پھندا یہ ہے کمپائلر کو انٹرپریٹر سے بدلنا، یا پہلے پڑھے CPU اور میموری اکائیوں کو اس کٹ کے طور پر پھر بیان کرنا۔

In the usual school account of this cut, an assembler translates assembly language into machine language. A compiler translates a whole high-level program into machine language before the program is run, and usually produces an object program. An interpreter translates and runs the program line by line, without a separate object program in the usual school telling. Usual school examples of high-level languages include FORTRAN, COBOL, C, Java and Python; a later official language name, or a later popular language, should be read if the list has moved, not frozen as the only key. The trap is to swap compiler with interpreter, or to reteach the already-taught CPU and memory units as if they were this cut.

کمپیوٹر کی نسلیں اور عام درسی زبان کے نشان

Computer generations and the usual school language marks

پہلا سبق ہارڈویئر، میموری اور ذخیرہ کی اکائیاں پہلے دیکھ چکا ہے۔ وہ نشان پڑاؤ رہتے ہیں۔ یہ کٹ کمپیوٹر نسلوں کی عام درسی کہانی ہے، اور ابتدائی پروگرامنگ زبانوں کی مختصر فہرست۔ عام درسی بیان میں پہلی نسل نے ویکیوم ٹیوبیں استعمال کیں، اور اکثر مشین لینگویج میں پروگرام ہوتی تھی۔ دوسری نسل نے ٹرانزسٹر استعمال کیے، اور اسے اسمبلی زبان سے یاد رکھا جاتا ہے۔ تیسری نسل نے انٹیگریٹڈ سرکٹس استعمال کیے، اور اسے اعلیٰ سطحی زبانوں کے وسیع استعمال سے یاد رکھا جاتا ہے۔ چوتھی نسل مائیکروپروسیسر اور پرسنل کمپیوٹر کا عام درسی نشان ہے۔ درسی نوٹس کبھی پانچویں نسل کو بعد کے گھنے چپس اور مصنوعی ذہانت پر کام کے ساتھ جوڑتے ہیں؛ وہ نشان ایک ڈھیلی درسی لیبل کے طور پر پڑھنا چاہیے، یہاں جمائے گئے بعد کے سرکاری مصنوع کے نام کے طور پر نہیں۔ زبان کی طرف، درسی نوٹس FORTRAN اور COBOL کو ابتدائی اعلیٰ سطحی زبانیں، اور C کو بعد میں وسیع پڑھی جانے والی زبان اکثر یاد رکھتے ہیں، پہلے پڑھے ہارڈویئر-اور-اکائیوں والے سبق کو یہ تاریخی کٹ بنا کر پھر بیان کیے بغیر۔

The earlier lesson already covers hardware, memory and units of storage. Those marks stay waypoints. This cut is the usual school story of computer generations, and a short list of early programming languages. In the usual school account, the first generation used vacuum tubes and was often programmed in machine language. The second generation used transistors and is usually remembered with assembly language. The third generation used integrated circuits and is usually remembered with high-level languages coming into wider use. The fourth generation is the usual school mark of the microprocessor and the personal computer. School notes sometimes add a fifth generation around later, denser chips and work on artificial intelligence; that mark should be read as a loose school label, not as a later official product name frozen here. On the language side, school notes often remember FORTRAN and COBOL as early high-level languages, and C as a later widely taught language, without retelling the already-taught hardware-and-units lesson as if it were this history cut.

میموری کی ترتیب اور ذخیرہ ی آلات، ایک پرت گہرا

Memory hierarchy and storage devices, one layer deeper

پہلے سبق میں ہارڈویئر، CPU کے حصے، اور عام میموری کی ترتیب پہلے آ چکی ہے: رجسٹر، کیش، RAM، SSD، HDD، RAM غیر مستقل، ROM مستقل۔ وہ نشان پڑاؤ رہتے ہیں۔ یہ کٹ اسی ترتیب پر ایک قدم گہری ہے۔ کیش عام طور پر SRAM ہے، فی بٹ تیز تر اور مہنگی؛ مین میموری عام طور پر DRAM ہے، زیادہ گنجان اور سستی۔ ROM خاندان میں PROM ایک بار پروگرام ہوتی ہے، EPROM بالائے بنفشی روشنی سے مٹائی جا سکتی ہے، اور EEPROM برقی طور پر مٹا کر مشین میں ہی تازہ کی جا سکتی ہے۔ ثانوی ذخیرہ عام درسی فہرست میں مقناطیسی (ہارڈ ڈسک یا ٹیپ)، بصری (CD یا DVD)، اور فلیش (SSD یا USB ڈرائیو) ہے۔ عام درسی فقروں میں ورچوئل میموری مشین کو ڈسک یوں استعمال کرنے دیتی ہے جیسے مین میموری بڑھ گئی ہو۔ ترتیب پر چڑھیں تو رسائی کا وقت گرتا ہے اور گنجائش عام طور پر گرتی ہے؛ نیچے جائیں تو گنجائش بڑھتی ہے اور رسائی سست ہوتی ہے۔ بعد کا سرکاری آلے کا سائز پڑھنا ہے، اکیلی کلید بنا کر جمانا نہیں۔ SRAM کو DRAM سے بدلنا، EEPROM کو صرف ایک بار لکھے جانے والی سمجھنا، یا صرف پہلے پڑھی رجسٹر-کیش-RAM-SSD-HDD فہرست کو یہ پورا صفحہ بنا کر پھر بیان کرنا، پھندا ہے۔

The earlier lesson already covers hardware, the CPU parts, and the usual memory order: registers, cache, RAM, SSD, HDD, with RAM volatile and ROM non-volatile. Those marks stay waypoints. This cut goes one step deeper on the same hierarchy. Cache is usually SRAM, which is faster and more expensive per bit; main memory is usually DRAM, which is denser and cheaper. In the ROM family, PROM is programmed once, EPROM can be erased with ultraviolet light, and EEPROM can be erased electrically and updated in the machine. Secondary storage is grouped in the usual school list as magnetic (a hard disk or a tape), optical (a CD or a DVD), and flash (an SSD or a USB drive). Virtual memory, in the usual school wording, lets the machine use disk as if it extended main memory. As one climbs the hierarchy, access time falls and capacity usually falls; as one goes down, capacity rises and access is slower. A later official device size should be read, not frozen as the only key. The trap is to swap SRAM with DRAM, to treat EEPROM as if it could be written only once, or to retell only the already-taught registers–cache–RAM–SSD–HDD list as if it were this whole page.

یاد رکھیں

CPU یعنی ALU، کنٹرول یونٹ اور رجسٹر مل کر۔ میموری کی رفتار کی ترتیب رجسٹر، کیش، RAM، SSD، HDD ہے۔ RAM عارضی ہے جبکہ ROM مستقل۔

The CPU is the ALU, the control unit and the registers together. Memory runs in the order registers, cache, RAM, SSD, HDD; RAM is volatile and ROM is non-volatile.

1 بائٹ 8 بٹ ہے، اور ایک اکائی سے اگلی اکائی تک ہر قدم 1024 سے ضرب ہے۔

One byte is 8 bits, and each step from one unit to the next multiplies by 1024.

پیپر یہ کیوں پوچھتا ہے

IBPS کلرک، IBPS PO مینز اور LIC اسسٹنٹ میں 5 سے 20 کمپیوٹر سوال آتے ہیں۔ ان میں سب سے بڑا حصہ بنیادی باتوں کا ہے۔ SSC CGL اور CHSL ٹیئر II میں بھی کمپیوٹر ماڈیول ہے۔

IBPS Clerk, IBPS PO Mains and LIC Assistant carry 5 to 20 computer questions, and fundamentals are the largest share of them. SSC CGL and CHSL Tier-II also run a computer module.

حل شدہ مثال

بائنری 1011 یعنی 1×8 + 0×4 + 1×2 + 1×1۔ یہ 8 + 0 + 2 + 1 ہے، جو اعشاری میں 11 بنتا ہے۔

The binary number 1011 becomes 1×8 + 0×4 + 1×2 + 1×1. That is 8 + 0 + 2 + 1, which is 11 in decimal.

عام غلطی

یہاں دو غلطیاں آپس میں مل جاتی ہیں۔ کیش میموری کو ثانوی ذخیرہ کہنا ایک ہے، اور کمپیوٹر میموری کے سوال میں 1 KB کو 1000 بائٹ لینا دوسری۔ رفتار کی ترتیب میں کیش رجسٹر کے بعد آتا ہے۔ ثانوی ذخیرہ SSD یا ہارڈ ڈسک کو کہتے ہیں۔ اکائی کا قدم 1000 نہیں، 1024 سے ضرب ہے۔Two mix-ups get confused here: calling cache memory secondary storage, and taking 1 KB as 1000 bytes in a computer-memory question. Cache sits second in the speed order, after the registers, while secondary storage means an SSD or a hard disk. The unit step is a multiplication of 1024, not 1000.

ماخذ: بینک اور SSC نصاب اور پچھلے پرچوں کے انداز پر لکھا گیا پرجا پریپ کا اپنا نوٹ (سرکاری وابستگی نہیں)۔

سائن اپ کر کے پڑھائی جاری رکھیں

یہ سبق پڑھنا مفت ہے۔ مفت سائن اپ کریں، ایپ میں اگلا سبق کھولیں، اپنی پیش رفت رکھیں، اور اسی موضوع پر سوال کی پریکٹس کریں۔

سائن اپ کر کے پڑھائی جاری رکھیں