______ Layer of the TCP/IP model is responsible for port binding.
A
Application
B
Internet
C
Transport
D
Network
উত্তরের বিবরণ
Answer: গ)
Transport
Explanation:
In the TCP/IP model, the Transport Layer is responsible for:
Port binding / addressing: Each
application on a host is assigned a port number (e.g., HTTP → 80, HTTPS
→ 443).
Reliable delivery: TCP provides error checking,
sequencing, and flow control.
Multiplexing/demultiplexing: Ensures data is delivered to
the correct application process using port numbers

0
Updated: 2 days ago
The space complexity of a recursive algorithm is mainly due to:
Created: 2 days ago
A
Input size
B
Output size
C
Variables inside loops
D
Function call
একটি recursive algorithm-এ প্রতিবার ফাংশন নিজেকে কল করলে একটি নতুন ফাংশন কল স্ট্যাক ফ্রেমে যুক্ত হয়, যা অতিরিক্ত মেমরি ব্যবহার করে। এই কারণেই recursion-এর space complexity প্রধানত function call-এর সংখ্যা ও গভীরতার (depth) ওপর নির্ভর করে।
বিস্তারিতভাবে:
-
প্রতিটি function call স্ট্যাকে একটি নতুন stack frame তৈরি করে।
-
এই ফ্রেমে থাকে local variables, parameters, এবং return address, যেগুলোর জন্য নির্দিষ্ট পরিমাণ মেমরি বরাদ্দ হয়।
-
মোট ব্যবহৃত মেমরি recursion-এর সর্বাধিক গভীরতা (maximum recursion depth) অনুসারে বৃদ্ধি পায়।
-
ফলে recursive function-এর space complexity সরাসরি function calls-এর সংখ্যা ও স্তর দ্বারা নির্ধারিত হয়।
ভুল বিকল্পগুলো:
-
Input size: এটি মূলত time complexity-কে প্রভাবিত করে, stack space-কে নয়।
-
Output size: শুধুমাত্র তখনই space প্রভাবিত করে যদি ফলাফলগুলো স্পষ্টভাবে সংরক্ষণ করা হয়।
-
Variables inside loops: এগুলো একই stack frame-এ থাকে, তাই recursion-এর মতো অতিরিক্ত stack space ব্যবহার করে না।
অতএব, recursion-এ space complexity-এর প্রধান উৎস হলো function calls।

0
Updated: 2 days ago
______ is a non-preemptive algorithm.
Created: 2 days ago
A
FCFS
B
Round Robin
C
Shortest Remaining Time
D
None of the above
Answer: ক)
FCFS

0
Updated: 2 days ago
Which command can we use to save all transactions?
Created: 2 days ago
A
Save point
B
Commit
C
Save
D
Rollback
Answer: খ)
Commit
Explanation:
In database management systems (DBMS):
Commit: Permanently saves all
changes/transactions made during the current session.
After a commit, changes cannot be rolled back.
Savepoint: Creates a marker within a transaction to which you can
rollback partially.
Rollback: Reverts changes to the last commit or to a savepoint.
Save: Not a standard SQL command for transaction
control.
Example:
BEGIN TRANSACTION;
UPDATE accounts SET balance = balance - 100 WHERE id = 1;
UPDATE accounts SET balance = balance + 100 WHERE id = 2;
COMMIT; -- saves all above changes permanently

0
Updated: 2 days ago