Which command can we use to save all transactions?
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
Contrapositive of “If it rains, the home team wins”:
Created: 2 days ago
A
If the home team wins, then it rains
B
If the home team does not win, it does not rain
C
If it does not rain then the home team does not win
D
The home team wins whenever rains
answer: গ)
If it does not rain, then the home team does not win
Explanation:

0
Updated: 2 days ago
What is the role of an index in a database?
Created: 2 days ago
A
To store large binary objects
B
To store data integrity constraints
C
To boost the speed of data retrieval operations
D
To group the related table together
Database index হলো এমন একটি বিশেষ data structure (সাধারণত B-tree বা hash table), যা ডেটা সংরক্ষণের পরিবর্তে ডেটা দ্রুত খুঁজে বের করার (data retrieval) গতি বাড়াতে ব্যবহৃত হয়। এটি একটি বইয়ের সূচিপত্রের মতো কাজ করে—যেখানে নির্দিষ্ট মানের অবস্থান দ্রুত পাওয়া যায়, সম্পূর্ণ বই না পড়েই।
বিস্তারিতভাবে:
-
একটি index মূলত টেবিলের কোনো কলামের মানকে তার মেমরিতে থাকা অবস্থানের (location) সঙ্গে ম্যাপ করে।
-
ফলে কোনো মান অনুসন্ধান করার সময় সম্পূর্ণ টেবিল স্ক্যান করার প্রয়োজন হয় না, বরং index-এর মাধ্যমে দ্রুত সেই সারিতে পৌঁছানো যায়।
-
উদাহরণস্বরূপ, যদি কোনো টেবিলে দশ লক্ষ সারি থাকে, তবে নির্দিষ্ট কলামে index থাকলে সেই মানের মিল থাকা সারিগুলো অতি দ্রুত সনাক্ত করা যায়।
-
এটি query performance উল্লেখযোগ্যভাবে বাড়ায়, বিশেষ করে SELECT, JOIN বা WHERE ক্লজ ব্যবহৃত কুয়েরিগুলোর ক্ষেত্রে।
ভুল বিকল্পগুলো:
-
(ক) বড় বাইনারি অবজেক্ট সংরক্ষণ করা → এটি BLOB (Binary Large Object) স্টোরেজের কাজ, indexing নয়।
-
(খ) ডেটা ইন্টিগ্রিটি সংরক্ষণ → এটি PRIMARY KEY, FOREIGN KEY, NOT NULL ইত্যাদি constraints দ্বারা করা হয়।
-
(ঘ) সম্পর্কিত টেবিলগুলো গ্রুপ করা → এটি schema design বা joins-এর মাধ্যমে করা হয়, index-এর সাথে সম্পর্কিত নয়।
অতএব, index-এর মূল উদ্দেশ্য হলো ডেটা রিট্রিভাল অপারেশন দ্রুততর করা।

0
Updated: 2 days ago
A half-adder circuit has:
Created: 2 days ago
A
1 input, 2 outputs
B
2 inputs, 2 outputs
C
2 inputs, 1 output
D
3 inputs, 2 outputs
Answer: খ)
2 inputs, 2 outputs
Explanation:
A half-adder is a combinational circuit that adds two single-bit binary
numbers.
It has:
Inputs: 2 → (A, B)
Outputs: 2 →
SUM = A ⊕ B (XOR gate)
CARRY = A · B (AND gate

0
Updated: 2 days ago