Loading...
Electricity Generation Company of Bangladesh (EGCB)

Post: Assistant Engineer (ICT)
Exam Date: 2022, Exam Taker: BUET
1. How do you design a logic circuit that has three inputs, A, B, and C, and whose output will be high only when majority of the inputs are high?
(a) Truth table বের কর
(b) টেবিল হতে SOP এবং POS এর সমীকরণ দেখাও।
ABCOutput
0000
0010
0100
0111
1000
1011
1101
1111
SOP expression: AB + BC + ACPOS expression: (A’ + B’) (B’ + C’) (A’ + C’)
2. Write a function in c/c++ that return kth largest number of an array. The function has three parameters array_name, size, k.

#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;
}
3. Definition of Gray-box testing & Unit testing.

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 নিশ্চিত করতে সাহায্য করে।
4. www.EGCB.gov.bd এর DNS দেখার জন্য কমান্ড লিখুন এবং কোন Protocol ব্যবহার করা হয়?

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 ব্যবহার করা হয়।

You must subscribe & Login to view more.

Don’t have an account? Register

Or your subscription is under review by admin. Please message on WhatsApp / Telegram.

Leave a Comment

Latest Post
Field Based Job Question & Solution
Bank IT Job Solution

MCQ + Written from Bangladesh Bank, Sonali, Combined Bank IT recruitment.

BPSC IT Job Solution

BPSC Computer/IT cadre & non-cadre post Question papers with full solutions.

Gas Field IT Job Solution

Gas field like TGTDCL, BGDCL, JGTDSL, KGDCL, SGCL, RPGCL, GTCL etc. question solution

Power Sector IT Job Solution

Power sector such as NESCO, DESCO, DPDC, WZPDCL, BPDB, PGCB, BREB etc

Other IT Job Solution

Other Govt. Semi govt. organization like BCC, BTCL, CAAB, NSI etc.

NTRCA IT Job Solution (upcoming)

NTRCA ICT-related posts such as Assistant Teacher, Demonstrator, Lecturer.

IT MCQ Job Solution

Collected MCQ Job solution of BANK, BPSC, POWER SECTOR, GAS Field and Others.

Topic Based Q&S
WhatsApp Telegram Messenger