৫(ক) P^(˥pvq) Logical Expression টির জন্য Truth Table প্রস্তুত করুন। যেখানে p,q boolean variable. ৫
| P | Q | ¬P | (¬P v Q) | P ^ (¬P v Q) |
|---|---|---|---|---|
| 1 | 1 | 0 | 1 | 1 |
| 1 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 | 0 |
| 0 | 0 | 1 | 1 | 0 |
৫(খ) Stack এবং Queue Data Structure সমূহের তুলনামূলক আলোচনা করুন। ৬
Comparative Discussion between Stack and Queue Data Structure:
Exam Point:Stack works on LIFO principle where operations occur at one end, while Queue works on FIFO principle where insertion and deletion occur at different ends.
| Basis | Stack | Queue |
|---|---|---|
| Definition | Stack is a linear data structure that follows LIFO (Last In First Out) principle. | Queue is a linear data structure that follows FIFO (First In First Out) principle. |
| Order of Removal | The last inserted element is removed first. | The first inserted element is removed first. |
| Main Operations | Push (insert), Pop (delete), Peek/Top. | Enqueue (insert), Dequeue (delete), Front/Rear. |
| Access Point | Insertion and deletion occur at the same end (Top). | Insertion at Rear and deletion at Front. |
| Example | Stack of plates, Undo operation. | Line in a ticket counter, Printer queue. |
Stack এবং Queue Data Structure-এর তুলনামূলক আলোচনা:
Exam Point:Stack LIFO নীতি অনুসরণ করে এবং এক প্রান্তে কাজ করে; Queue FIFO নীতি অনুসরণ করে এবং দুই প্রান্তে insertion ও deletion হয়।
| ভিত্তি | Stack | Queue |
|---|---|---|
| Definition | Stack একটি linear data structure যা LIFO (Last In First Out) নীতি অনুসরণ করে। | Queue একটি linear data structure যা FIFO (First In First Out) নীতি অনুসরণ করে। |
| Order of Removal | সর্বশেষ প্রবেশ করা element প্রথমে বের হয়। | সর্বপ্রথম প্রবেশ করা element প্রথমে বের হয়। |
| Main Operations | Push (insert), Pop (delete), Peek/Top। | Enqueue (insert), Dequeue (delete), Front/Rear। |
| Access Point | Insertion ও deletion একই প্রান্তে (Top) ঘটে। | Insertion Rear-এ এবং deletion Front-এ ঘটে। |
| উদাহরণ | Plate-এর স্তূপ, Undo operation। | Ticket counter-এর লাইন, Printer queue। |
৫(গ) Malware কী? উদাহরণসহ সংক্ষিপ্ত বর্ণনা দিন। ৫
Malware:
Malware stands for Malicious Software. It is a type of harmful software designed to damage, disrupt, or gain unauthorized access to a computer system or network.Common Types of Malware (with Example):
- Virus: A program that attaches to a file and spreads when the file is executed. Example: File-infecting virus.
- Worm: A self-replicating malware that spreads automatically over networks. Example: WannaCry worm.
- Trojan Horse: Malicious software disguised as legitimate software. Example: Fake antivirus software.
- Ransomware: Encrypts user data and demands payment to unlock it. Example: CryptoLocker.
- Spyware: Secretly monitors user activities and steals information. Example: Keylogger.
- Data theft
- System damage
- Financial loss
- Unauthorized access
Malware:
Malware শব্দটি Malicious Software থেকে এসেছে। এটি এমন ক্ষতিকর software যা computer system বা network ক্ষতিগ্রস্ত করা, ব্যাহত করা বা unauthorized access পাওয়ার জন্য তৈরি করা হয়।Malware-এর সাধারণ প্রকারভেদ (উদাহরণসহ):
- Virus: কোনো file-এর সাথে যুক্ত হয়ে ছড়ায়। উদাহরণ: File-infecting virus।
- Worm: নিজে নিজে network-এ ছড়ায়। উদাহরণ: WannaCry worm।
- Trojan Horse: আসল software-এর মতো ছদ্মবেশ ধারণ করে। উদাহরণ: Fake antivirus software।
- Ransomware: Data encrypt করে মুক্তিপণ দাবি করে। উদাহরণ: CryptoLocker।
- Spyware: গোপনে user-এর তথ্য সংগ্রহ করে। উদাহরণ: Keylogger।
- Data চুরি
- System ক্ষতি
- আর্থিক ক্ষতি
- Unauthorized access
