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
26211. CQ / Written2007-2008 · Question 14

14. Draw a logic circuit for CMOS NAND gate and write the advantages of using CMOS [CMOS NAND গেট এর জন্য একটি লজিক সার্কিট অংকন কর এবং CMOS ব্যবহারের সুবিধা লিখ] (14)

CQ / Written solution

CMOS NAND-এ দুই pMOS VDD থেকে output-এর মধ্যে parallel এবং দুই nMOS output থেকে ground-এর মধ্যে series। A প্রতিটি network-এর একটি gate, B অন্যটি drive করে।

\[Y=\overline{AB}\]

A = B = 1 হলে nMOS path ON, pMOS OFF, output 0। অন্য সব অবস্থায় অন্তত একটি pMOS ON ও series nMOS path broken, output 1। সুবিধা: কম static power, বড় noise margin, high integration density; switching-এ dynamic power লাগে।

cmos nand

Sign in to save reading progress

26212. CQ / Written2007-2008 · Question 15

15. There are four electric lamp for 60 W each and three fans for 50 W each in a hour. It each of the lamps and fans are used for 6 hours daily on the average. What will be the electric cost of the house in the month of February, 2009, Given the unit price is 3.15 Tk [একটি বাড়ীতে 60 W এর চারটি বাতি এবং 50 W এর তিনটি পাখা আছে। বাতি এবং পাখাগুলি দৈনিক গড়ে ছয় ঘন্টা করে ব্যবহার হলে 2009 সালের ফেব্রুয়ারী মাসে বৈদ্যুতিক খরচ কত হবে? দেওয়া আছে, প্রতি ইউনিটের মূল্য 3.15 টাকা।] (14)

CQ / Written solution

\[P=4(60)+3(50)=390\,\mathrm W=0.39\,\mathrm{kW}\]

\[E=0.39(6)(28)=65.52\,\mathrm{kWh}\]

\[\text{Cost}=65.52(3.15)=\boxed{206.388\text{ Tk}}\approx206.39\text{ Tk}\]

February 2009-এ 28 দিন। প্রশ্নে দেওয়া rate ব্যবহার করা হয়েছে; অন্য charge ধরা হয়নি।

Sign in to save reading progress

26213. CQ / Written2006-2007 · Question 1a

1. (a) Write a program in C language to read data from the keyboard, write it in a file called “INPUT” again read the same data from the “INPUT’ file and display it on the screen. [সি ভাষায় একটি প্রোগ্রাম লিখ যা কি বোর্ড থেকে ডাটা পড়বে এবং INPUT নামে একটি ফাইলে লিখবে এবং পুনরায় INPUT নামের ফাইল থেকে পড়বে এবং স্ক্রীনে প্রদর্শন করবে।]

CQ / Written solution

একটি line keyboard থেকে পড়ে INPUT ফাইলে লিখে আবার file থেকে দেখানো:

#include <stdio.h>

int main(void) {
    char data[1024];
    if (!fgets(data, sizeof data, stdin)) return 1;
    FILE *fp = fopen("INPUT", "w");
    if (!fp) { perror("INPUT"); return 1; }
    if (fputs(data, fp) == EOF) { fclose(fp); return 1; }
    if (fclose(fp) != 0) return 1;
    fp = fopen("INPUT", "r");
    if (!fp) { perror("INPUT"); return 1; }
    int ch;
    while ((ch = fgetc(fp)) != EOF) putchar(ch);
    int failed = ferror(fp);
    fclose(fp);
    return failed ? 1 : 0;
}

Sign in to save reading progress

26214. CQ / Written2006-2007 · Question 1b

Source ambiguity: see solution note.

1. (b) How many keywords are there in C++ programming language? Mention at least six keywords. [সি++ প্রোগ্রামিং ল্যাঙ্গুয়েজে কতটি কী ওয়ার্ড আছে? কমপক্ষে ০৬ টি কীওয়ার্ডের নাম উল্লেখ কর।] (07)

CQ / Written solution

C++ keyword count language-standard version অনুযায়ী বদলায়; version ছাড়া একটিমাত্র সংখ্যা নির্ভুল নয়। ছয়টি keyword: class, public, private, protected, virtual, return। এগুলো case-sensitive reserved words।

Sign in to save reading progress

26215. CQ / Written2006-2007 · Question 2a

2. (a) Let B = {a, b, c, d, e, f, g, h} and A = {a, b, c, k, e}. Find (i) A $\cup$ B (ii) A $\cap$ B (iii) A - B (iv) B - A [ধর, B = {a, b, c, d, e, f, g, h} এবং A = {a, b, c, k, e} বাহির কর (i) A$\cup$B (ii) A$\cap$B (iii) A - B (iv) B - A] (04)

CQ / Written solution

\[A\cup B=\{a,b,c,d,e,f,g,h,k\}\]

\[A\cap B=\{a,b,c,e\}\]

\[A-B=\{k\},\qquad B-A=\{d,f,g,h\}\]

Sign in to save reading progress

26216. CQ / Written2006-2007 · Question 2b

2. (b) If we roll a what be will be the probability of getting a number divisible by 2 or 3. [আমরা যদি একটি ছক্কা নিক্ষেপ করি তাহলে উপরের পিঠে ২ অথবা ৩ দ্বারা বিভাজ্য সংখ্যা পাওয়ার সম্ভবতা কত?]

CQ / Written solution

\[E=\{2,3,4,6\},\qquad P(E)=\frac46=\boxed{\frac23}\]

Fair six-sided die ধরা হয়েছে; 6-কে একবারই গণনা করা হয়।

Sign in to save reading progress

26217. CQ / Written2006-2007 · Question 3

3. Consider a linear array AAA (5:50), BBB (-5:10) and CCC (18), suppose base (AAA) = 300 and the number of words per memory cell is 4 for AAA. a) Find the number of elements in each array b) The address of AAA (15), AAA (35) and AAA [55] [(AAA (5:50). BBB(-5:10) এবং CCC (18) & ধর বেইস (AAA) = 300 এবং AAA এর জন্য মেমোরি সেলের ওয়ার্ড সংখ্যা 4 (চার) (a) প্রত্যেক এ্যারের এলিমেন্ট সংখ্যা বের কর। (b) AAA [15], AAA [35] এবং AAA [55] এর এড্রেস বের কর। (14)

CQ / Written solution

\[N_{AAA}=50-5+1=46,\quad N_{BBB}=10-(-5)+1=16,\quad N_{CCC}=18\]

\[\operatorname{LOC}(AAA[k])=300+4(k-5)\]

\[\operatorname{LOC}(AAA[15])=340,\quad\operatorname{LOC}(AAA[35])=420\]

AAA[55] invalid: declared upper bound 50। Formula-এ 500 পাওয়া গেলেও সেটি array-এর বৈধ element address নয়।

Sign in to save reading progress

26218. CQ / Written2006-2007 · Question 4a

4. (a) What is database ? Define primary key with example. (ডাটাবেস বলতে কি বুঝায়। Primary Key উদাহরণসহ সংজ্ঞায়িত কর।)

CQ / Written solution

Database হলো সংগঠিত সম্পর্কিত data-এর collection। Primary key প্রতিটি row-কে uniquely চিহ্নিত করে; এটি unique এবং NOT NULL। উদাহরণ: Student(StudentID, Name)-এ StudentID primary key।

Sign in to save reading progress

26219. CQ / Written2006-2007 · Question 4b

4. (b) Write six components of an E-R diagram. [E-R ডায়াগ্রামের ছয়টি কম্পোনেন্টের নাম লিখ।] (06)

CQ / Written solution

ComponentChen notation
EntityRectangle
Weak entityDouble rectangle
RelationshipDiamond
AttributeOval
Key attributeUnderlined attribute name
Multivalued attributeDouble oval

Sign in to save reading progress

26220. CQ / Written2006-2007 · Question 5a

5. (a) What are the advantages of database management system? [ডাটাবেস ম্যানেজমেন্ট সিস্টেমের সুবিধাগুলি লিখ।] (04)

CQ / Written solution

  1. নিয়ন্ত্রিত redundancy ও consistency।
  2. Constraints দিয়ে data integrity।
  3. Authorization ও access control।
  4. Transactions ও concurrent access।
  5. Backup এবং crash recovery।
  6. Data independence ও SQL query।

Sign in to save reading progress