কম্পিউটার সায়েন্স এন্ড ইঞ্জিনিয়ারিং
Subjects / বিষয়
Non-Technical · Shared by all departments
পদার্থ বিজ্ঞান
8 chapters
Non-Technical · Shared by all departments
রসায়ন
15 chapters
Non-Technical · Shared by all departments
গণিত
4 chapters
Non-Technical · Shared by all departments
ইংরেজি
11 chapters
Technical
Computer Science and Engineering
12 chapters
Questions
0 read · 0 practiced · 0 answered in examsvi) Which model shows the sequence of activities in the process along with their inputs, outputs, and dependencies? [কোন মডেলটি ইনপুট, আউটপুট, এবং ডিপেন্ডেন্সিস এর সাথে তার প্রসেসে ধারা প্রদর্শন করে?]
Correct answer: b
Workflow model activities-এর sequence এবং dependencies দেখায়; data-flow model মূলত data movement দেখায়।
vii) Physical memory is broken into fixed-sized blocks called ______. [Physical মেমোরীর নির্দিষ্ট আকারের বিভক্ত ব্লককে ______ বলে।]
Correct answer: a
Physical frame, logical page।
viii) With paging there is no ______ fragmentation. [Paging এ কোন ______ fragmentation নেই।]
Correct answer: b
Paging external fragmentation দূর করে; internal fragmentation থাকতে পারে।
ix) Which of the following instructions is not valid? [নিম্নের কোন ইন্সট্রাকশন টি সঠিক নয়?]
Correct answer: b
Segment register-এ immediate সরাসরি MOV করা যায় না; আগে general register-এ নিতে হয়।
x) ______ Which layer of OSI model perform the encryption/decryption? [OSI model এর কোন layer-টি encryption বা decryption করে?]
Correct answer: b
OSI presentation layer data representation/encryption-এর দায়িত্ব বর্ণনা করে।
xi) ______ is used to store BIOS programs? [BIOS প্রোগ্রাম সংরক্ষণ করতে ______ ব্যবহৃত হয়।]
Correct answer: a
BIOS firmware nonvolatile ROM/flash memory-তে থাকে।
xii) Two resistance of 100 Ω and zero Ω are connected in parallel. The overall resistance will be ______. [100 Ω এবং zero $\Omega$ এর দুটি রেজিস্টেন্স সমান্তরালে সংযুক্ত থাকলে মোট রেজিস্টেন্স ______ হবে।]
Correct answer: d
Ideal zero-ohm parallel branch short circuit তৈরি করে; equivalent resistance zero।
1. (a) How is a member function of a class defined? [class এর member function এর সংজ্ঞা দাও।] (04)
CQ / Written solution
Class-এর member function class-এর ভিতরে define করা যায় অথবা বাইরে scope-resolution operator :: দিয়ে define করা যায়।
#include <iostream>
class Counter {
int value = 0;
public:
void increment();
int get() const { return value; }
};
void Counter::increment() { ++value; }
int main() {
Counter c;
c.increment();
std::cout << c.get() << '\n';
}
(b) Consider that a palindrome is a number that displays the same number while showing it either in forward or backward approach. As an example of palindrome: 12321. Write a program in C that takes a 5 digit number as an input and determines whether the input is a palindrome or not. [ধর, palindrome এমন একটি সংখ্যা যা কি না একই রকম দেখায় যখন সোজা/উল্টো যেভাবেই দেখা হোক না কেন। উদাহরণ হিসেবে একটি সংখ্যা হলো : 12321। C ল্যাঙ্গুয়েজ একটি প্রোগ্রাম লিখ যা কিনা 5 ডিজিটের একটি সংখ্যা ইনপুট হিসেবে নিবে এবং ইনপুটটি palindrome কিনা বের করবে।] (10)
CQ / Written solution
#include <stdio.h>
int main(void) {
int n, reversed = 0;
if (scanf("%d", &n) != 1 || n < 10000 || n > 99999) return 1;
for (int t = n; t != 0; t /= 10)
reversed = reversed * 10 + t % 10;
puts(n == reversed ? "Palindrome" : "Not palindrome");
return 0;
}
2. (a) The blood groups of 200 people are distributed as follows: 50 have type A blood, 65 have type B blood, 70 have type AB blood, and 15 have type O blood. If a person from this group is selected at random, what is the probability that this person has type O blood? [200 জন লোকের রক্তের গ্রুপ এরকম : 50 জন A গ্রুপের, 65 জন B গ্রুপের, 70 জন AB গ্রুপের এবং 15 জন O গ্রুপের। এদের মধ্যে দৈবভাবে একজনকে নির্বাচন করলে তার রক্তের গ্রুপ O হওয়ার সম্ভাবনা কত?] (06)
CQ / Written solution
\[P(O)=15/200=\boxed{3/40=0.075}\]