Your next chapter starts hereExplore admission guide

Previous Year Questions

Admission syllabus
Reset

Computer Science and Engineering

430 questions
2016-2017 · Question 10.4 MCQ Full paper
Programming / Data types, variables and operators

iv) Which of the following is not supported by Java? [নিচের কোনটি Java সাপোর্ট করে না?]

a.
Signed number
b.
Unsigned number
c.
Signed right shift
d.
Unsigned right shift
Answer & solution / উত্তর ও সমাধান

Correct answer: b. Unsigned number

Expected answer: unsigned integer type যেমন unsigned int নেই; Java-তে char unsigned এবং unsigned arithmetic helpers আছে। Signed >> ও unsigned >>> দুটিই supported।

2016-2017 · Question 10.5 MCQ Full paper
Programming / Input, output and file operations

v) In C language, which function is used to read data fron keybord?[C ল্যাঙ্গুয়েজের কোন ফাংশনটি কিবোর্ড থেকে ডাটা নেয়ার জন্য ব্যবহার করা হয়?]

a.
printf ()
b.
scanf ()
c.
void ()
d.
main ()
Answer & solution / উত্তর ও সমাধান

Correct answer: b. scanf ()

scanf standard input থেকে formatted data পড়ে।

2016-2017 · Question 10.6 MCQ Full paper
Data Communication & Computer Network / Multiplexing and switching

vi) The direct connection is made between sendet and receiver so data can be transmitted: [প্রেরক ও প্রাপকের মধ্যে ডাটা সঞ্চালনের জন্য সরাসরি সংযোগ তৈরি হয়:]

a.
Packet Switching
b.
Message Switching
c.
Circuit Switching
d.
Data Switching
Answer & solution / উত্তর ও সমাধান

Correct answer: c. Circuit Switching

Circuit switching-এ dedicated communication path স্থাপন হয়।

2016-2017 · Question 10.7 MCQ Full paper
Programming / Data types, variables and operators

vii) Variable which can be acccssed by all modules of the program is called- [যে variable প্রোগ্রামের সব মডিউল অ্যাকসেস করতে পারে তাকে বলে-]

a.
Global variable
b.
Local variable
c.
static variable
d.
Auto variable
Answer & solution / উত্তর ও সমাধান

Correct answer: a. Global variable

Global variable, declaration ও linkage-এর scope সাপেক্ষে।

2016-2017 · Question 10.8 MCQ Full paper
Programming / Arrays and memory addressing Programming / Data types, variables and operators

viii) What is the following declaration for? [নিচের declaration টি কী জন্যে?] int(*α) [10];

a.
Pointer to an array of 10 integers.
b.
Array of 10 function pointer returning int.
c.
A pointer ot function retuning an array of 10 integers.
d.
Array of 10 integer pointer.
Answer & solution / উত্তর ও সমাধান

Correct answer: a. Pointer to an array of 10 integers.

int (*p)[10] হলো 10 integer-এর array-এর pointer।

2016-2017 · Question 10.9 MCQ Full paper
Data Communication & Computer Network / Network topologies and coverage

ix) Which one of the following is the WiFi standard? [নিচের কোনটি WiFi standerd?]

a.
IEEE 802.1
b.
IEEE 802.3
c.
IEEE 802.11
d.
IEEE 802.15
Answer & solution / উত্তর ও সমাধান

Correct answer: c. IEEE 802.11

Wi-Fi IEEE 802.11 family-এর ওপর ভিত্তি করে।

2016-2017 · Question 10.10 MCQ Full paper
Database Management / Database concepts and DBMS Database Management / SQL and query languages

x) If we write a program in a programming language and switch to SQL when we require to use the database , then the SQL environment in use is know as [যদি আমরা যেকোন প্রোগ্রামিং ল্যাঙ্গুয়েজে একটি প্রোগ্রাম লিখি এবং তা database এর প্রয়োজনে SQL এর সাথে যুক্ত করি তখন তাকে বলে-]

a.
PL SQL
b.
Embedded SQL
c.
Dynamic SQL
d.
Real-time SQL
Answer & solution / উত্তর ও সমাধান

Correct answer: b. Embedded SQL

Host language-এর মধ্যে SQL ব্যবহার: embedded SQL।

2016-2017 · Question 10.11 MCQ Full paper
Digital Electronics / Boolean algebra and logic gates

x) Dual role of NAND function is- [NAND ফাংশন এর DUAL হলো-]

a.
AND function
b.
OR function
c.
NOR function
d.
NAND function
Answer & solution / উত্তর ও সমাধান

Correct answer: c. NOR function

Dual-এ AND ও OR অদলবদল হয়: NAND-এর dual NOR।

2015-2016 · Question 1a Written Full paper
Programming / Data types, variables and operators

1. (a) What is token? List different types of token in C++. [টোকেন কি? C++ এর বিভিন্ন প্রকার টোকেন এর তালিকা দাও।] (07)

Answer & solution / উত্তর ও সমাধান

Token হলো source program-এর ক্ষুদ্রতম meaningful lexical unit। C++ token-এর প্রধান ধরন: keywords, identifiers, literals, operators ও punctuators।

int count = 10;
// int: keyword; count: identifier; 10: literal; =: operator; ;: punctuator
2015-2016 · Question 1b Written Full paper
Programming / OOP: polymorphism and binding

(b) What is polymorphism? Differentiate between method overriding and method overloading? [Polymorphism কি? method overriding এবং method overloading এর মধ্যে পার্থক্য কর।] (07)

Answer & solution / উত্তর ও সমাধান

Polymorphism হলো একই interface দিয়ে বিভিন্ন ধরনের object-এর উপযুক্ত আচরণ পাওয়া।

  1. Compile-time: function/operator overloading।
  2. Run-time: virtual function overriding; base pointer/reference দিয়ে derived implementation চালানো।
  3. সুবিধা: পুনর্ব্যবহার, সহজ extension এবং কম coupling।
OverloadingOverriding
একই নাম, ভিন্ন parameter listDerived class-এ matching virtual function-এর implementation
Compile-time overload resolutionVirtual dispatch-এ run-time selection
Return type একা বদলে overload হয় নাC++-এ override লিখলে signature compiler যাচাই করে
2015-2016 · Question 2 Written Full paper
Programming / Data types, variables and operators

2. Write a program in C language to make a SWAP operation. In the program you have to take two inputs in x and y variable and show the x and y output first; and then SWAP the x and y variable values and show the output for new x and y values. [C ল্যাঙ্গুয়েজ এ একটি প্রোগ্রাম লিখ যা SWAP অপারেশন করতে পারে। উক্ত প্রোগ্রামে X ও Y দুইটি ভেরিয়েবলে প্রথমে দুইটি মান ইনপুট হিসেবে নিবে এবং x ও y এর মান আউটপুট এ দেখাবে; পরবর্তীতে x ও y এর মধ্যে SWAP করার পর x ও y এর নতুন মান আউটপুটে দেখাবে।] (14)

Answer & solution / উত্তর ও সমাধান
#include <stdio.h>

int main(void) {
    int x, y;
    if (scanf("%d%d", &x, &y) != 2) return 1;
    printf("Before: x=%d y=%d\n", x, y);
    int temp = x;
    x = y;
    y = temp;
    printf("After: x=%d y=%d\n", x, y);
    return 0;
}
2015-2016 · Question 3 Written Full paper
Historical: Discrete Mathematics / Counting and probability

3. The king, queen and jack of clubs are removed from a deck of 52 playing cards and then shuffled. A card is drawn from the remaining cards. Find the probability of getting. [ক্লাবস এর রাজা, রানী এবং জ্যাক 52 কার্ড থেকে সরানো হলো এবং তারপর কার্ডটি (Shuffle) হলো, যদি একটি কার্ড থেকে টানা হয়। তাহলে নিম্নলিখিত বিষয়ের সম্ভাব্যতা বের কর।] (14)

(i) a heart (ii) '9' of red color

Answer & solution / উত্তর ও সমাধান

Club-এর king, queen, jack সরানোর পর card সংখ্যা 49। Heart থাকে 13টি এবং red 9 থাকে 2টি।

\[P(\text{heart})=\frac{13}{49},\qquad P(\text{red nine})=\frac{2}{49}\]

2015-2016 · Question 4a Written Full paper
Data Structure / Linked lists

4. (a) What are the advantages of linked list over array (static data structure)? [Array এর সুবিধাগুলো কি কি?] (07)

Answer & solution / উত্তর ও সমাধান
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 বদলানো যায়

Linked list-এর insertion/deletion সুবিধা node/predecessor আগে থেকে জানা থাকলে প্রযোজ্য; search cost বাদ দেওয়া যাবে না।

2015-2016 · Question 4b Written Full paper
Data Structure / Trees and traversal

4. (b) Define and draw binary tree. Find the preorder and postorder traversal of the following tree: [ছবিসহ binary tree এর সংজ্ঞা দাও। নিচে প্রদত্ত tree-টির preorder ও postorder traversal বের কর ।] (07)

Question diagram

Binary Tree-এর সংজ্ঞা

Binary Tree হলো এমন একটি Tree Data Structure, যেখানে প্রতিটি Node-এর সর্বোচ্চ দুইটি child থাকতে পারে। এই দুইটি child-কে সাধারণত Left Child এবং Right Child বলা হয়।

Preorder Traversal

Rule: আগে Root, তারপর প্রতিটি Child left-to-right order-এ visit করতে হয়।

Preorder = L → K → A → B → J → C → I → H → E → D → F → G

Answer & solution / উত্তর ও সমাধান

Binary tree-তে প্রতিটি node-এর সর্বোচ্চ দুই child থাকে। Source-এর আঁকা tree-তে L ও H-এর তিনটি child আছে; তাই চিত্রটি general ordered tree। Left-to-right traversal অনুযায়ী:

Preorder:  L K A B J C I H E D F G
Postorder: B A C J K I D E F G H L
2015-2016 · Question 5a Written Full paper
Operating System / Processes and scheduling

5. (a) Why is CPU scheduling used? Write down its criteria. [CPU scheduling কেন করা হয়? এর Criteria গুলো লিখ ।] (07)

Answer & solution / উত্তর ও সমাধান

CPU scheduling ready process-এর মধ্যে CPU বরাদ্দ করে। লক্ষ্য হলো CPU utilization ও throughput বাড়ানো, waiting/turnaround/response time কমানো এবং fairness বজায় রাখা।

Metricসংজ্ঞা
Throughputপ্রতি unit time-এ completed process সংখ্যা
Turnaround timeCompletion time − arrival time
Waiting timeReady queue-এ মোট অপেক্ষা
Response timeপ্রথম CPU service/response time − arrival time