Your next chapter starts hereExplore admission guide
PRACTICE QUESTION BANK

কম্পিউটার সায়েন্স এন্ড ইঞ্জিনিয়ারিং

Department
26378Questions
26022MCQ
356CQ / Written
0%0 covered

Subjects / বিষয়

Non-Technical · Shared by all departments

রসায়ন

15 chapters

6500 questions6500 MCQ0 CQ
0/6500 covered0%
0%

Non-Technical · Shared by all departments

গণিত

4 chapters

2500 questions2500 MCQ0 CQ
0/2500 covered0%
0%

Non-Technical · Shared by all departments

ইংরেজি

11 chapters

2800 questions2800 MCQ0 CQ
0/2800 covered0%
0%

Questions

0 read · 0 practiced · 0 answered in exams
25961. CQ / Written2026 · Question 13

13. 2's Complement কী? 8-bit ব্যবহার করে 45 − 60 কর।

Question diagram

CQ / Written solution

2's complement: সব bit invert করে 1 যোগ করতে হয়।

\[45=00101101_2,\quad60=00111100_2,\quad-60=11000100_2\]

\[00101101_2+11000100_2=11110001_2\]

ফল negative; invert করে 1 যোগ করলে 00001111 = 15।

\[\boxed{45-60=-15}\]

Sign in to save reading progress

25962. CQ / Written2026 · Question 14

14. Memory Management-এ Logical Address এবং Physical Address Space-এর পার্থক্য

CQ / Written solution

Logical/virtual addressPhysical address
CPU/program-এর address spaceRAM-এর বাস্তব address space
MMU দিয়ে অনুবাদ হয়Address translation-এর ফল
Process অনুযায়ী পৃথক হতে পারেHardware memory access-এ ব্যবহৃত হয়

Sign in to save reading progress

25963. CQ / Written2026 · Question 15

15. IP Address: 192.168.1.1, Subnet Mask: 255.255.255.192

CQ / Written solution

\[255.255.255.192=/26,\quad h=32-26=6\]

বিষয়ফল
Network192.168.1.0/26
Broadcast192.168.1.63
Usable hosts192.168.1.1 - 192.168.1.62
Usable host count\(2^6-2=62\)

192.168.1.0/24 parent network ধরা হলে /26 subnet সংখ্যা \(2^{26-24}=4\)। Parent prefix ছাড়া subnet সংখ্যা নির্দিষ্ট নয়।

Sign in to save reading progress

25964. CQ / Written2026 · Question 16

16. Department(DeptID, DeptName), Employees(Name, DeptID, Salary)

  1. সব department-এর average salary বের কর।
  2. Salary 50000-এর বেশি এমন employee-এর name ও department দেখাও।

CQ / Written solution

সব department, এমনকি employee না থাকা department-ও দেখাতে LEFT JOIN ব্যবহার করা হয়েছে।

SELECT d.DeptID, d.DeptName, AVG(e.Salary) AS AverageSalary
FROM Department AS d
LEFT JOIN Employees AS e ON e.DeptID = d.DeptID
GROUP BY d.DeptID, d.DeptName;

SELECT e.Name, d.DeptName
FROM Employees AS e
JOIN Department AS d ON d.DeptID = e.DeptID
WHERE e.Salary > 50000;

Employee না থাকলে average NULL; সেটি শূন্য salary বোঝায় না।

Sign in to save reading progress

25965. CQ / Written2026 · Question 17

17. Decoder কী? NAND Gate ব্যবহার করে 2-input Decoder Design কর।

CQ / Written solution

Decoder n-bit input থেকে সর্বোচ্চ \(2^n\)টি output নির্বাচন করে। NAND-only 2-to-4 decoder-এর output active-low।

\[\bar A=\operatorname{NAND}(A,A),\quad\bar B=\operatorname{NAND}(B,B)\]

\[Y_0=\overline{\bar A\bar B},\quad Y_1=\overline{\bar AB},\quad Y_2=\overline{A\bar B},\quad Y_3=\overline{AB}\]

ABY0Y1Y2Y3
000111
011011
101101
111110

Active-high output চাইলে প্রতিটি output-কে আরেকটি tied-input NAND দিয়ে invert করতে হবে।

Sign in to save reading progress

25966. CQ / Written2026 · Question 18

18. Circuit থেকে Rt, It, P, Vr2 বের কর

Question diagram

CQ / Written solution

\[R_a=2\parallel3=\frac{2\times3}{2+3}=\frac65\,\Omega\]

\[R_b=4+R_a=\frac{26}{5}\,\Omega,\qquad R_p=2\parallel R_b=\frac{13}{9}\,\Omega\]

\[R_t=4+R_p=\boxed{\frac{49}{9}\,\Omega\approx5.444\,\Omega}\]

\[I_t=\frac{12}{49/9}=\boxed{\frac{108}{49}\,\mathrm A\approx2.204\,\mathrm A}\]

\[P=12I_t=\boxed{26.449\,\mathrm W},\quad V_{R_2}=I_tR_p=\boxed{\frac{156}{49}\,\mathrm V\approx3.184\,\mathrm V}\]

Sign in to save reading progress

25967. CQ / Written2019-2020 · Question 1

1. What are the advantages of using inheritance in C++ programming? Write a program in C/C++ to print the following number pattern: [C++ programming এ inheritance এর সুবিধাগুলো কি কি? C/C++ এ একটি প্রোগ্রাম লিখো যা নীচের নম্বর প্যাটার্ন প্রিন্ট করবে।] (4+10)

1

1 2

1 2 3

1 2 3 4

1 2 3 4 5

CQ / Written solution

Inheritance existing class-এর reusable behavior, extension এবং substitutable derived types তৈরি করতে সাহায্য করে।

#include <iostream>

int main() {
    for (int i = 1; i <= 5; ++i) {
        for (int j = 1; j <= i; ++j)
            std::cout << j << (j == i ? '\n' : ' ');
    }
}

Sign in to save reading progress

25968. CQ / Written2019-2020 · Question 2

2. What is the relationship between a class and an object? Distinguish between modifier and accessor in C++ language with an example. [Class এবং object এর মধ্যে সম্পর্ক কি? উদাহরণ সহকারে modifier এবং accessor এর মধ্যকার পার্থক্য C++ ল্যাংগুয়েজের সাপেক্ষে বর্ণনা কর।] (6+8)

CQ / Written solution

Class হলো user-defined type/blueprint; object হলো সেই class-এর instance। Modifier object-এর state বদলায়; accessor state পড়ে, সাধারণত const member function হয়।

#include <iostream>

class Student {
    int marks = 0;
public:
    void setMarks(int value) { marks = value; }
    int getMarks() const { return marks; }
};

int main() {
    Student s;
    s.setMarks(85);
    std::cout << s.getMarks() << '\n';
}

Sign in to save reading progress

25969. CQ / Written2019-2020 · Question 3

3. What is the power set of S = {a,b,c}? Compare between linked list and array. [সেট S = {a,b,c} এর পাওয়ার সেট কি? Linked list ও array এর মধ্যকার তুলনা কর।] (6+8)

CQ / Written solution

\[\mathcal P(\{a,b,c\})=\{\varnothing,\{a\},\{b\},\{c\},\{a,b\},\{a,c\},\{b,c\},\{a,b,c\}\}\]

\[|\mathcal P(S)|=2^3=8\]

ArrayLinked list
Contiguous elementsNodes linked by pointers
Random access \(O(1)\)Index access \(O(n)\)
Middle insertion/deletion often \(O(n)\)Known predecessor/node থাকলে link update \(O(1)\); node খুঁজতে সময় লাগে
কম per-element overhead ও ভালো cache localityPointer overhead; size incrementally বদলানো যায়

Sign in to save reading progress

25970. CQ / Written2019-2020 · Question 4

4. What are the different phases of SDLC? Classify mapping cardinalities for a binary relationship set with examples. [SDLC এর বিভিন্ন ফেজগুলো কি কি? উদাহরণ সহকারে একটি বাইনারি রিলেশনশিপ সেটের ম্যাপিং কার্ডিনালিটি শ্রেণিভুক্ত কর।] (6+8)

CQ / Written solution

SDLC = System Development Life Cycle।

  1. Planning ও feasibility
  2. Requirements analysis
  3. Design
  4. Implementation
  5. Testing
  6. Deployment
  7. Maintenance
Typeউদাহরণ
One-to-oneএক country-এর একটি capital, model-এর assumptions সাপেক্ষে
One-to-manyএক department-এ বহু employee
Many-to-oneবহু employee-এর একটি department
Many-to-manyবহু student বহু course নেয়

Sign in to save reading progress