Previous Year Questions
Admission syllabusComputer Science and Engineering
430 questions(v) The binary code of \(\left( \mathbf{21.125} \right)_{\mathbf{10}}\) is ----- [ \(\left( \mathbf{21.125} \right)_{\mathbf{10}}\) এর বাইনারি -----]
Answer & solution / উত্তর ও সমাধান
Correct answer: a. 10101.001
21 = 10101 এবং 0.125 = 0.001 binary।
(vi) In a R-L-C series circuit, resonant frequency is ----- [R-L-C সিরিজ সার্কিটে রেজোন্যান্ট ফ্রিকোয়েন্সি -----]
Answer & solution / উত্তর ও সমাধান
Correct answer: b. \(f_{r} = \frac{1}{2\pi\sqrt{\text{LC}}}\)
\(f_r=1/(2\pi\sqrt{LC})\)।
(vii) A table column that contains values that are primary key values in another table is ----- [একটি টেবিলের কলাম যা অন্য টেবিলের প্রাইমারী কি ধারণ করে তা -----]
Answer & solution / উত্তর ও সমাধান
Correct answer: c. foreign key
অন্য relation-এর referenced key-কে নির্দেশ করে foreign key।
(viii) In the relational mode, cardinality is termed as ----- [রিলেশনাল মোডে কার্ডিনালিটি দ্বারা বোঝায় -----]
Answer & solution / উত্তর ও সমাধান
Correct answer: b. number of tuples
Cardinality = tuple/row count; degree = attribute count।
(ix) Router operates in which layer of OSI reference model ----- [OSI রেফারেন্স মডেলের কোন লেয়ারে রাউটার কাজ করে -----]
Answer & solution / উত্তর ও সমাধান
Correct answer: b. Layer 3 (Network layer)
Router network layer (layer 3)-এ IP routing করে।
(x) Black box testing sometimes called ----- [কখনও কখনও ব্ল্যাক বক্স টেস্টিংকে ----- বলা হয়]
Answer & solution / উত্তর ও সমাধান
Correct answer: b. behavioral testing
Black-box testing externally visible behavior পরীক্ষা করে।
(xi) Which module gives control of the CPU to the process selected by the short-term scheduler? [শর্ট-টার্ম সিডিউলার দ্বারা নির্ধারিত কোন মডিউলটি CPU এর নিয়ন্ত্রণ প্রসেসকে প্রদান করে?]
Answer & solution / উত্তর ও সমাধান
Correct answer: a. dispatcher
Dispatcher CPU control হস্তান্তর করে।
(xii) Method of transmission in which transmission takes place in both directions, but only one direction at a time, is called ----- [যে ট্রান্সমিশন পদ্ধতিতে উভয় দিকে ট্রান্সমিশন হয়, কিন্তু একই সময়ে শুধু একদিকেই হয় তাকে বলে -----]
Answer & solution / উত্তর ও সমাধান
Correct answer: d. half duplex
দুইদিকে যায়, একসঙ্গে নয়: half duplex।
(xiii) ‘Siemens’ or Mho ($\mho$) is the unit of ----- [‘Siemens’ অথবা Mho ($\mho$) কার ইউনিট -----]
Answer & solution / উত্তর ও সমাধান
Correct answer: c. both (a) and (b)
Conductance এবং admittance উভয়ের SI unit siemens।
(xiv) Two bulbs marked 200 watts-250 V and 100 watts-250 V are connected in series to 250 V supply. The consumed power by the circuit is ----- [200 watts-250 V ও 100 watts-250 V চিহ্নিত দুইটি বাল্ব 250 V সাপ্লাইয়ের সাথে সিরিজে সংযুক্ত করা হয়েছে। সার্কিটটি মোট পাওয়ার গ্রহণ করবে -----]
Answer & solution / উত্তর ও সমাধান
Correct answer: d. 67 watts
\(R_1=250^2/200=312.5\,\Omega, R_2=625\,\Omega; P=250^2/937.5\approx66.67\,\mathrm W\)।
(xv) Physical memory is broken into fixed-sized blocks are called ----- [Physical মেমোরির নির্দিষ্ট আকারের বিভক্ত block কে বলে -----]
Answer & solution / উত্তর ও সমাধান
Correct answer: a. frames
Physical memory blocks = frames।
Question 1
The line joining the two points (2, 2) and (5, 6), which lie on the circumference of a circle is the diameter of the circle. Write a program in C/C++ to compute the area of the circle. Use a symbolic constant to define the value of \(\mathbf{\pi}\) .[বৃত্তের পরিধিতে অবস্থিত দুইটি বিন্দু (2, 2) ও (5, 6)দ্বারা গঠিত রেখাই হল বৃত্তের ব্যাস। C/C++ প্রোগ্রামিং ল্যাঙ্গুয়েজ ব্যবহার করে একটি প্রোগ্রাম লিখ যা ঐ বৃত্তের ক্ষেত্রফল বের করবে। \(\mathbf{\pi}\) এর মানকে একটি সিম্বলিক ধ্রুবক হিসেবে ব্যবহার করতে হবে।]
Answer & solution / উত্তর ও সমাধান
\[d=\sqrt{(5-2)^2+(6-2)^2}=5,\quad r=2.5,\quad A=\pi r^2=6.25\pi\approx19.635\]
#include <stdio.h>
#define PI 3.14159265358979323846
int main(void) {
double dx = 5.0 - 2.0, dy = 6.0 - 2.0;
double area = PI * (dx * dx + dy * dy) / 4.0;
printf("Area = %.6f\n", area);
return 0;
}
Question 2
What is inheritance? Write a program to show the inheritance used in a class. [ইনহেরিটেন্স কি? ক্লাসে ইনহেরিটেন্স দেখানোর জন্য একটি প্রোগ্রাম লিখ।]
Answer & solution / উত্তর ও সমাধান
Inheritance-এ derived class base class-এর accessible data ও behaviour পুনর্ব্যবহার করে এবং নতুন behaviour যোগ করতে পারে। উদাহরণ: Vehicle থেকে Car ও Bus।
#include <iostream>
class Vehicle {
public:
void start() const { std::cout << "Started\n"; }
};
class Car : public Vehicle {
public:
void drive() const { std::cout << "Driving\n"; }
};
int main() { Car c; c.start(); c.drive(); }
Question 3
(a) The blood groups of people are distributed as follows: 50 have type A blood, 65 have type B blood, 70 have type O blood and 15 have type AB blood. If a person from this group is selected at random, what is the probability that this person has type O blood? [২০০ জন লোকের রক্তের গ্রুপ নিম্নরূপ: ৫০ জন A গ্রুপের, ৬৫ জন B গ্রুপের, ৭০ জন O গ্রুপের এবং ১৫ জন AB গ্রুপের। এদের মধ্যে দৈবভাব একজনকেও নির্বাচন করলে তার রক্তের গ্রুপ O হওয়ার সম্ভাবনা কত?]
Answer & solution / উত্তর ও সমাধান
\[P(O)=\frac{70}{200}=\frac7{20}=\boxed{0.35}\]
(b) Show that, $(p \oplus q)$ and $\sim(p \leftrightarrow q)$ are logically equivalent. [দেখাও যে- $(p \oplus q)$ ও $\sim(p \leftrightarrow q)$ যৌক্তিকভাবে সমতুল্য]
Answer & solution / উত্তর ও সমাধান
| p | q | p XOR q | NOT (p ↔ q) |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 |
শেষ দুই column একই, তাই proposition দুটি logically equivalent।