Ans. A number system is the system for representation of numeric data. It is defined as a set of values used to represent different quantities. We are all familiar with the decimal number system where each number consists of digits from 0 to 9. In a computer system, other number systems are also used, such as Binary and Hexadecimal.
نمبر سسٹم وہ سسٹم ہے جو نومیرک ڈیٹا کی نمائندگی کے لیے استعمال ہوتا ہے۔ یہ مختلف مقداروں کی نمائندگی کے لیے استعمال ہونے والے قیمتی مجموعے کے طور پر تعریف شدہ ہے۔ ہم سب ڈیسیمل نمبر سسٹم سے واقف ہیں جہاں ہر نمبر 0 سے 9 تک کے ڈیجٹس پر مشتمل ہوتا ہے۔ کمپیوٹر سسٹم میں بھی دیگر نمبر سسٹمز استعمال ہوتے ہیں، جیسے بائنری اور ہیگزادیسمل۔
Ans. Conversion of number system refers to the process of converting one number system to another number system. For example, converting a decimal number to a binary number.
کنورژن آف نمبر سسٹم اس پروسیس کو کہتے ہیں جس میں ایک نمبر سسٹم کو دوسرے نمبر سسٹم میں تبدیل کیا جاتا ہے۔ مثال کے طور پر، ایک ڈیسیمل نمبر کو بائنری نمبر میں کنورٹ کرنا۔
Ans. Digital computers store data in binary form. This means that whether it is text, pictures, movies, or applications, everything is stored in computer memory in the form of 0s and 1s.
ڈیجیٹل کمپیوٹرز ڈیٹا کو بائنری فارم میں محفوظ کرتے ہیں۔ اس کا مطلب یہ ہے کہ چاہے یہ ٹیکسٹ، پکچرز، موویز، یا ایپلیکیشنز ہوں، ہر چیز کمپیوٹر میموری میں 0 اور 1 کی شکل میں محفوظ ہوتی ہے۔
Ans. ASCII (American Standard Code for Information Interchange) is a coding scheme published by ISO (International Standards Organization). It is a 7-bit coding scheme where codes are assigned to various characters. Many computers also use 8-bit ASCII code. For example: A = 65, B = 66, and a = 97.
اے ایس سی آئی (امریکن اسٹینڈرڈ کوڈ فار انفارمیشن انٹرچینج) ایک کوڈنگ اسکیم ہے جو آئی ایس او (انٹرنیشنل اسٹینڈرڈز آرگنائزیشن) کی طرف سے شائع کی گئی ہے۔ یہ 7-bit کوڈنگ اسکیم ہے جہاں مختلف حروف کے لیے کوڈز مختص کیے جاتے ہیں۔ بہت سے کمپیوٹرز بھی 8-bit اے ایس سی آئی کوڈ استعمال کرتے ہیں۔ مثال کے طور پر: A = 65، B = 66، اور a = 97۔
Ans. Bit stands for Binary Digit. A bit is the smallest unit of data and has a value of 1 or 0 representing ON or OFF state. Computers understand only machine language, which consists of binary codes 0 and 1, so the binary number system is very important for computers.
بٹ کا مطلب ہے بائنری ڈیجٹ۔ بٹ ڈیٹا کا سب سے چھوٹا یونٹ ہے اور اس کی قیمت 1 یا 0 ہوتی ہے جو آن یا آف کی حالت کی نمائندگی کرتی ہے۔ کمپیوٹرز صرف مشین لینگویج کو سمجھتے ہیں، جو بائنری کوڈز 0 اور 1 پر مشتمل ہے، لہٰذا بائنری نمبر سسٹم کمپیوٹرز کے لیے بہت اہم ہے۔
Ans. A collection of 8 bits is called a byte. It is a set of bits that represents a particular character or symbol. In memory, one byte can store only one character.
8 بِٹس کا مجموعہ بائٹ کہلاتا ہے۔ یہ بِٹس کا ایک سیٹ ہے جو مخصوص کریکٹر یا سمبل کی نمائندگی کرتا ہے۔ میموری میں، ایک بائٹ صرف ایک کریکٹر محفوظ کر سکتا ہے۔
Ans. The octal numbering system is a base-8 number system that uses digits from 0 to 7. Each digit represents a power of 8. In octal, the place values from right to left are 8^0, 8^1, 8^2 and so on. For example, the octal number 157 means: 1 × 8^2 + 5 × 8^1 + 7 × 8^0 = 64 + 40 + 7 = 111 in decimal.
اوکٹل نمبرنگ سسٹم ایک بیس-8 نمبر سسٹم ہے جو 0 سے 7 تک کے ڈیجٹس استعمال کرتا ہے۔ ہر ڈیجٹ 8 کی پاور کی نمائندہ ہے۔ اوکٹل میں، دائیں سے بائیں تک کی پلیس ویلیوز 8^0, 8^1, 8^2 وغیرہ ہیں۔ مثال کے طور پر، اوکٹل نمبر 157 کا مطلب ہے: 1 × 8^2 + 5 × 8^1 + 7 × 8^0 = 64 + 40 + 7 = 111 ڈیسیمل میں۔
Ans. (100000)₂ = 1 × 2^5 + 0 × 2^4 + 0 × 2^3 + 0 × 2^2 + 0 × 2^1 + 0 × 2^0
= 32 + 0 + 0 + 0 + 0 + 0
= (32)₁₀
(100000)₂ = 1 × 2^5 + 0 × 2^4 + 0 × 2^3 + 0 × 2^2 + 0 × 2^1 + 0 × 2^0
= 32 + 0 + 0 + 0 + 0 + 0
= (32)₁₀
Ans. Encoding is the conversion of data from one format or representation to another, usually for storage, transport, or processing. It converts information into a format that computers, devices, or software can understand, transfer, or store.
اینکوڈنگ ڈیٹا کو ایک فارمیٹ یا ریپریزنٹیشن سے دوسرے میں تبدیل کرنا ہے، عموماً سٹوریج، ٹرانسپورٹ، یا پروسیسنگ کے لیے۔ یہ معلومات کو اس فارمیٹ میں تبدیل کرتا ہے جو کمپیوٹرز، ڈیوائسز، یا سافٹ ویئر سمجھ سکتے ہیں، ٹرانسفر یا اسٹور کر سکتے ہیں۔
Ans. The major distinction between signed and unsigned integers is their capacity to represent numbers. Signed integers can represent both positive and negative numbers, including zero. Unsigned integers can only represent non-negative values (zero and positive numbers).
سائنڈ اور ان سائنڈ انٹیجرز کے درمیان بنیادی فرق ان کی اعداد ظاہر کرنے کی صلاحیت ہے۔ سائنڈ انٹیجرز مثبت اور منفی اعداد دونوں، بشمول صفر، کو ظاہر کر سکتے ہیں۔ ان سائنڈ انٹیجرز صرف غیر منفی قدریں (صفر اور مثبت اعداد) ظاہر کر سکتے ہیں۔
Ans. In computers, real values (also known as floating point numbers) are used to represent numbers that have fractions or decimal points. These values are stored using IEEE standard, where each standard is represented by:
i. Sign bit
ii. Exponent
iii. Mantissa
کمپیوٹروں میں، حقیقی اقدار (جنہیں فلوٹنگ پوائنٹ نمبرز بھی کہا جاتا ہے) استعمال ہوتی ہیں تاکہ ایسے اعداد کی نمائندگی کی جا سکے جن میں کسر یا اعشاریہ پوائنٹس ہوں۔ یہ اقدار IEEE معیاری کے تحت محفوظ کی جاتی ہیں، جہاں ہر حصہ درج ذیل ہے:
i. سائن بٹ
ii. ایکسپونینٹ
iii. مینٹیسہ
Ans. Binary arithmetic refers to the operations of addition, subtraction, multiplication, and division performed on binary numbers. Binary numbers are the basis of all operations in digital computers. Binary arithmetic operations are similar to decimal operations but follow binary rules.
بائنری اریتھمیٹک سے مراد بائنری نمبر پر کی جانے والی جمع، تفریق، ضرب اور تقسیم کے عملیات ہیں۔ بائنری نمبر ڈیجیٹل کمپیوٹر کی تمام عملیات کی بنیاد ہیں۔ بائنری اریتھمیٹک عملیات دسیمال عملیات کی طرح ہیں لیکن بائنری قواعد کی پیروی کرتی ہیں۔
Ans. The rules of binary addition are: 0 + 0 = 0, 0 + 1 = 1, 1 + 0 = 1, 1 + 1 = 0 (with a carry of 1 to the next higher bit).
بائنری ایڈیشن کے قواعد یہ ہیں: 0 + 0 = 0, 0 + 1 = 1, 1 + 0 = 1, 1 + 1 = 0 (ایک کیری کے ساتھ اگلے اعلی بِٹ پر)۔
Ans. Booth's Algorithm is an efficient algorithm for multiplying binary numbers, especially when dealing with large numbers or numbers with many consecutive similar bits.
بوٹھ کا الگورتھم ایک مؤثر الگورتھم ہے جو بائنری نمبرز کو ضرب دینے کے لیے استعمال ہوتا ہے، خاص طور پر جب بڑے نمبرز یا بہت سے مسلسل ایک جیسے بٹس کے ساتھ نمبرز کا معاملہ ہو۔
Ans. The central processing unit (CPU) of a computer performs millions of binary operations every second to execute complex instructions and run programs.
کمپیوٹر کا سنٹرل پروسیسنگ یونٹ (CPU) ہر سیکنڈ میں ملینوں بائنری آپریشنز انجام دیتا ہے تاکہ پیچیدہ انسٹرکشنز کو ایگزیکیوٹ کر کے پروگرامز چلائے۔
Ans. Common text encoding schemes include: ASCII (American Standard Code for Information Interchange), Extended ASCII, Unicode (Universal Code), UTF-8 (Unicode Transformation Format-8), UTF-16 (Unicode Transformation Format-16), UTF-32 (Unicode Transformation Format-32).
عام متن اینکوڈنگ اسکیمز شامل ہیں: ASCII (امریکی معیاری کوڈ برائے معلومات کا تبادلہ)، ایکسٹینڈڈ ASCII، Unicode (عالمی کوڈ)، UTF-8 (Unicode ٹرانسفارمیشن فارمیٹ-8)، UTF-16 (Unicode ٹرانسفارمیشن فارمیٹ-16)، UTF-32 (Unicode ٹرانسفارمیشن فارمیٹ-32).
Ans. Images are made up of tiny dots called pixels. Each pixel has a color, and the combination of all these pixels forms the complete picture. Computers store images using numbers to represent these colors.
تصاویر چھوٹے نقطوں پر مشتمل ہوتی ہیں جنہیں پکسل کہا جاتا ہے۔ ہر پکسل کا ایک رنگ ہوتا ہے، اور ان تمام پکسلز کے مرکب سے مکمل تصویر بنتی ہے۔ کمپیوٹرز تصاویر کو ان رنگوں کی نمائندگی کرنے والے اعداد کے ذریعے محفوظ کرتے ہیں۔
Ans. A pixel (Picture Element) is the smallest unit of a digital image or display that may be independently manipulated for color and brightness. Pixels are the fundamental components of all digital images and screens, including those on smartphones, computers, and televisions.
پکسل (پکچر ایلیمنٹ) سب سے چھوٹا یونٹ ہے ایک ڈیجیٹل امیج یا ڈسپلے کا جو رنگ اور چمک کے لیے آزادانہ طور پر تبدیل کیا جا سکتا ہے۔ پکسلز تمام ڈیجیٹل امیجز اور سکرینز کے بنیادی اجزاء ہیں، بشمول سمارٹ فونز، کمپیوٹرز، اور ٹیلی ویژن۔
Ans. In a color image, each pixel's color can be represented by three numbers: Red, Green, and Blue (RGB). Each of these numbers typically ranges from 0 to 255. For example, a pixel with RGB values (255, 0, 0) will be bright red.
ایک کلر امیج میں، ہر پکسل کا رنگ تین نمبرز سے پیش کیا جا سکتا ہے: ریڈ، گرین، اور بلو (RGB). ان میں سے ہر نمبر عام طور پر 0 سے 255 تک ہوتا ہے۔ مثال کے طور پر، ایک پکسل جس کے RGB ویلیوز (255, 0, 0) ہوں گے، وہ چمکدار ریڈ ہوگا۔
Ans. JPEG (Joint Photographic Experts Group): Common format for photos. It compresses the image to save space but might lose some quality. PNG (Portable Network Graphics): Supports transparency and maintains high quality without losing data. GIF (Graphics Interchange Format): Used for simple animations and images with few colors.
جے پی ای جی (Joint Photographic Experts Group): فوٹو کے لیے عام فارمیٹ ہے۔ یہ تصویر کو کمپریس کرتا ہے تاکہ جگہ بچائی جا سکے مگر اس میں کچھ کوالٹی کم ہو سکتی ہے۔ پی این جی (Portable Network Graphics): یہ ٹرانسپیرنسی کو سپورٹ کرتا ہے اور ڈیٹا ضائع کیے بغیر اعلیٰ کوالٹی برقرار رکھتا ہے۔ جی آئی ایف (Graphics Interchange Format): سادہ اینیمیشنز اور کم رنگوں والی تصاویر کے لیے استعمال ہوتا ہے۔
Ans. Audio files are stored by capturing sound waves and converting them into digital data. This process involves sampling and quantization.
آڈیو فائلز کو ساؤنڈ ویوز کو پکڑ کر اور انہیں ڈیجیٹل ڈیٹا میں تبدیل کر کے محفوظ کیا جاتا ہے۔ یہ عمل سامپلنگ اور کوانٹائزیشن پر مشتمل ہے۔
Ans. MP3: A common format that compresses audio to save space but may lose some quality. WAV: Uncompressed format that maintains high quality. AAC: Used by many streaming services for high-quality audio with efficient compression.
MP3: ایک عام فارمیٹ جو آڈیو کو کمپریس کرتا ہے جگہ بچانے کیلئے لیکن معیار میں کمی ہو سکتی ہے۔ WAV: غیر کمپریسڈ فارمیٹ جو اعلی معیار برقرار رکھتا ہے۔ AAC: کئی سٹریمنگ سروسز کے ذریعہ استعمال ہوتا ہے اعلی معیار کی آڈیو کیلئے مؤثر کمپریشن کے ساتھ۔
Ans. Frame rate refers to the number of frames shown per second, measured in frames per second (fps). Common frame rates are 24 fps (used in movies) and 30 fps (used in TV). Higher frame rates result in smoother motion in videos.
فریم ریٹ اس بات کی وضاحت کرتا ہے کہ فی سیکنڈ کتنے فریم دکھائے جاتے ہیں، جسے فریم فی سیکنڈ (fps) میں ناپا جاتا ہے۔ عام فریم ریٹس 24 fps (فلموں میں استعمال ہوتے ہیں) اور 30 fps (ٹی وی میں استعمال ہوتے ہیں) ہیں۔ اعلیٰ فریم ریٹس ویڈیوز میں حرکت کو زیادہ ہموار بناتے ہیں۔
Ans. Hard Disk Drives (HDD): Use spinning disks to read/write data. They offer large storage capacities. Solid State Drives (SSD): Use flash memory for faster access times and better performance. Cloud Storage: Stores files on remote servers accessible via the internet, providing flexibility and backup.
ہارڈ ڈسک ڈرائیوز (HDD): گھومنے والے ڈسکس کا استعمال کرتے ہیں ڈیٹا پڑھنے/لکھنے کے لیے۔ یہ بڑی اسٹوریج صلاحیتیں فراہم کرتے ہیں۔ سالڈ اسٹیٹ ڈرائیوز (SSD): فلیش میموری استعمال کرتے ہیں تیز رسائی کے اوقات اور بہتر کارکردگی کے لیے۔ کلاؤڈ اسٹوریج: فائلیں دور دراز سرورز پر ذخیرہ کرتا ہے جو انٹرنیٹ کے ذریعے قابل رسائی ہیں، لچک اور بیک اپ فراہم کرتا ہے۔
Ans. ASCII stands for American Standard Code for Information Interchange. It is a character encoding standard used to represent text in computers and other devices that use text. Each letter, digit, or symbol is assigned a unique number between 0 and 127.
ASCII کا مخفف امریکی اسٹینڈرڈ کوڈ فار انفارمیشن انٹرچینج ہے۔ یہ ایک کریکٹر اینکوڈنگ اسٹینڈرڈ ہے جو کمپیوٹرز اور دوسرے آلات میں متن کی نمائندگی کے لیے استعمال ہوتا ہے۔ ہر لیٹر، ڈیجٹ، یا سمبل کو 0 اور 127 کے درمیان ایک منفرد نمبر مقرر کیا جاتا ہے۔
Ans. ASCII is a character encoding standard that represents text using 7-bit codes, covering basic English characters and symbols. Unicode is a character encoding standard that aims to cover all the characters used in the world's writing systems, supporting multiple languages and scripts.
اے ایس سی آئی ایک کیریکٹر اینکوڈنگ سٹینڈرڈ ہے جو متن کو 7-بِٹ کوڈز کے ذریعے پیش کرتا ہے، بنیادی انگریزی حروف اور علامات کو شامل کرتا ہے۔ یونیکوڈ ایک کیریکٹر اینکوڈنگ سٹینڈرڈ ہے جو دنیا کے تمام لکھائی نظاموں کے حروف کو شامل کرنے کا مقصد رکھتا ہے، متعدد زبانوں اور اسکرپٹس کی حمایت کرتا ہے۔
Ans. Unicode handles characters from different languages through various encoding formats: UTF-8 is a variable-length encoding that uses 1 to 4 bytes per character; UTF-16 uses 2 or 4 bytes per character; UTF-32 is a fixed-length encoding that uses 4 bytes for every character.
یونیکوڈ مختلف زبانوں کے کریکٹرز کو مختلف اینکوڈنگ فارمیٹس کے ذریعے نپٹتا ہے: UTF-8 ایک متغیر لمبائی کا اینکوڈنگ ہے جو ہر کریکٹر کے لیے 1 سے 4 بائٹس استعمال کرتا ہے؛ UTF-16 ہر کریکٹر کے لیے 2 یا 4 بائٹس استعمال کرتا ہے؛ UTF-32 ایک مقررہ لمبائی کا اینکوڈنگ ہے جو ہر کریکٹر کے لیے 4 بائٹس استعمال کرتا ہے۔
Ans. The range of values for an unsigned 2-byte integer is from 0 to 65,535.
ان سائنڈ ۲ بائٹ انٹیجر کی حد اقدار 0 سے 65,535 تک ہے۔
Ans. Negative numbers are represented in binary using two's complement method. To find the two's complement of a binary number: 1. Invert all the bits (change 0s to 1s and 1s to 0s), 2. Add 1 to the Least Significant Bit (LSB).
منفی اعداد بائنری میں ٹوئز کمپلیمنٹ طریقہ استعمال کر کے نمائندہ کیے جاتے ہیں۔ ٹوئز کمپلیمنٹ حاصل کرنے کے لیے: 1. تمام بِٹس کو الٹائیں (0 کو 1 اور 1 کو 0 میں بدلیں)، 2. لیسٹ سِگنیفِیکنٹ بٹ (LSB) میں 1 جمع کریں۔
Ans. Using unsigned integers offers significant advantages when negative values are not necessary. One of the most significant benefits is the wider positive range they provide compared to signed integers of the same bit length.
ان سائنڈ انٹیجرز استعمال کرنا اہم فوائد فراہم کرتا ہے جب منفی اقدار ضروری نہ ہوں۔ ان کے سب سے اہم فوائد میں سے ایک یہ ہے کہ وہ سائنڈ انٹیجرز کے مقابلے میں، ایک ہی بٹ کی لمبائی کے ساتھ، وسیع مثبت حد فراہم کرتے ہیں۔
Ans. The number of bits determines how many distinct binary combinations can be produced, thus defining the range of integer values. For unsigned integers, the range is from 0 to 2^n - 1. For signed integers, the range is from -2^(n-1) to 2^(n-1) - 1.
بِٹس کی تعداد یہ طے کرتی ہے کہ کتنی مختلف بائنری کمبینیشنز پیدا کی جا سکتی ہیں، اس طرح انٹیجر ویلیوز کی رینج متعین ہوتی ہے۔ غیر دستخط شدہ (unsigned) انٹیجرز کے لیے رینج 0 سے 2^n - 1 تک ہوتی ہے۔ دستخط شدہ (signed) انٹیجرز کے لیے رینج -2^(n-1) سے 2^(n-1) - 1 تک ہوتی ہے۔
Ans. Whole numbers are often used to represent amounts that cannot be negative, such as the number of students in a school, a person's age, and grades (when there are no negative points).
ہول نمبرز اکثر اُن مقداروں کی نمائندگی کے لیے استعمال ہوتے ہیں جو منفی نہیں ہو سکتی، جیسے کہ اسکول میں طلباء کی تعداد، کسی شخص کی عمر، اور گریڈز (جب منفی نقاط نہ ہوں)۔
Ans. In single precision floating-point format (IEEE 754), 4 bytes (32 bits) are used where 1 bit is for the sign, 8 bits for the exponent, and 23 bits for the mantissa. The exponent ranges from -126 to +127, giving an approximate range of values from 1.4 × 10^-45 to 3.4 × 10^38.
سنگل پریسیژن فلوٹنگ پوائنٹ فارمیٹ (IEEE 754) میں 4 بائٹس (32 بِٹس) استعمال ہوتے ہیں جہاں 1 بِٹ سائن کے لیے، 8 بِٹس ایکسپونینٹ کے لیے، اور 23 بِٹس مینٹِسہ کے لیے ہوتے ہیں۔ ایکسپونینٹ -126 سے +127 تک کی حد میں رہتا ہے، جس سے تقریباً 1.4 × 10^-45 سے 3.4 × 10^38 تک کی حد حاصل ہوتی ہے۔
Ans. Understanding the constraints of floating-point representation in scientific computing is critical since they impact calculation accuracy, precision, and reliability. Floating-point values have limited accuracy, which can create round-off errors during arithmetic operations, resulting in minor mistakes that can accumulate in complex calculations.
فلوٹنگ-پوائنٹ ریپریزنٹیشن کی حدود کو سائنٹیفک کمپیوٹنگ میں سمجھنا اہم ہے کیونکہ یہ کیلکولیشن کی درستگی، پریسیژن اور ریلیئبلٹی پر اثر انداز ہوتے ہیں۔ فلوٹنگ-پوائنٹ ویلیوز کی محدود درستگی ہوتی ہے، جو اریتھمیٹک آپریشنز کے دوران راؤنڈ-آف ایررز پیدا کر سکتی ہے، جس سے چھوٹی غلطیاں پیدا ہوتی ہیں جو کمپلیکسی کیلکولیشنز میں جمع ہو سکتی ہیں۔