Electricity Generation Company of Bangladesh (EGCB)
Post: Assistant Engineer (ICT)
Exam Date: 2022, Exam Taker: BUET
(a) Truth table বের কর
(b) টেবিল হতে SOP এবং POS এর সমীকরণ দেখাও।
| A | B | C | Output |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 |
#include <iostream>
#include <algorithm>
using namespace std;
// Function to find kth largest element
int kthLargest(int arr[], int size, int k) {
// Sort the array in ascending order
sort(arr, arr + size);
// kth largest element
return arr[size - k];
}
int main() {
int arr[] = {10, 4, 3, 50, 23};
int size = 5;
int k = 2;
cout << "Kth largest element is: " << kthLargest(arr, size, k) << endl;
return 0;
}
Gray-box testing is a software testing method that combines both black-box testing and white-box testing. In this approach, the tester has partial knowledge of the internal structure of the system.
- Tester has limited knowledge of internal working.
- Helps design more efficient and targeted test cases.
- Useful for detecting issues that may not be found in black-box testing.
Unit testing is a testing method where individual components of a program, such as functions, methods, or classes, are tested separately.
- Focuses on small units of code.
- Usually written and performed by developers.
- Often automated and executed frequently during development.
- Helps detect bugs early and ensures code reliability.
Gray-box testing হলো একটি software testing পদ্ধতি যা black-box testing এবং white-box testing-এর সমন্বয়ে গঠিত। এখানে tester system-এর internal structure সম্পর্কে আংশিক ধারণা রাখে।
- Tester-এর কাছে internal working সম্পর্কে আংশিক জ্ঞান থাকে।
- এটি আরও কার্যকর এবং নির্দিষ্ট test case তৈরি করতে সাহায্য করে।
- Black-box testing-এ ধরা না পড়া সমস্যা শনাক্ত করতে সাহায্য করে।
Unit testing হলো একটি testing পদ্ধতি যেখানে program-এর ছোট ছোট অংশ যেমন function, method বা class আলাদাভাবে পরীক্ষা করা হয়।
- Code-এর ছোট unit নিয়ে কাজ করে।
- সাধারণত developer-রা এই test লিখে এবং চালায়।
- এটি automated হয় এবং development চলাকালীন বারবার চালানো হয়।
- এটি দ্রুত bug খুঁজে বের করতে এবং code-এর reliability নিশ্চিত করতে সাহায্য করে।
nslookup www.EGCB.gov.bd or
dig www.EGCB.gov.bd
এই কমান্ডগুলি DNS (Domain Name System) প্রোটোকল ব্যবহার করে। DNS একটি Application Layer প্রোটোকল যা UDP (User Datagram Protocol) এবং TCP (Transmission Control Protocol) উভয় প্রোটোকল ব্যবহার করে কাজ করে। সাধারণত DNS রিকোয়েস্টগুলির জন্য UDP (পোর্ট 53) ব্যবহৃত হয়, কিন্তু বড় DNS রেকর্ড বা ট্রান্সফার করার সময় TCP ব্যবহার করা হয়।
