What does the 'continue' statement do inside a loop?
A
exits the loop entirely
B
terminates the program
C
re-execute the loop twice
D
skip the rest of the current iteration and move to the next
উত্তরের বিবরণ
Answer: ঘ)
Skip the rest of the current iteration and move to the next
Explanation:
The continue statement in programming (C, C++, Java, Python, etc.) is used
inside loops:
When the program encounters continue, it
immediately skips the remaining statements in the current iteration.
Then, the loop proceeds with the next iteration (checking the loop
condition for while/for loops).
Example in C:
for(int i = 1; i <= 5; i++) {
if(i == 3) {
continue; // skip printing 3
}
printf("%d ", i);
}
Output:
1 2 4 5
Notice that 3 is skipped, but the loop continues.
Incorrect options:
(ক) Exits the loop
→ that’s break
(খ) Terminates the
program → that’s exit()
(গ) Re-execute loop
twice → not related

0
Updated: 2 days ago
During a phone conversation, which mode of communication takes place?
Created: 2 days ago
A
Simplex
B
Full-duplex
C
Half-duplex
D
Multiplex
Answer: খ)
Full-duplex 0
Updated: 2 days ago
Communication modes:
Direct Memory Access allows:
Created: 2 days ago
A
CPU to execute instructions while l/O transfers data directly to memory
B
Only CPU controlled data transfer
C
memory to execute instructions independently
D
Reducing cache hits
Direct Memory Access (DMA) হলো এমন একটি হার্ডওয়্যার বৈশিষ্ট্য যা I/O ডিভাইসগুলোকে (যেমন ডিস্ক, নেটওয়ার্ক কার্ড ইত্যাদি) প্রধান মেমরির সাথে CPU-এর ক্রমাগত সম্পৃক্ততা ছাড়াই সরাসরি ডেটা আদান-প্রদানের সুযোগ দেয়। এর ফলে সিস্টেমের সামগ্রিক পারফরম্যান্স উল্লেখযোগ্যভাবে বৃদ্ধি পায়।
বিস্তারিতভাবে প্রক্রিয়াটি:
-
DMA Controller (DMAC) অল্প সময়ের জন্য CPU থেকে সিস্টেম বাসের নিয়ন্ত্রণ নিয়ে নেয়।
-
এটি I/O ডিভাইস ও মূল মেমরির মধ্যে সরাসরি ডেটা স্থানান্তর সম্পন্ন করে।
-
এই সময়ে CPU অন্য কাজ সম্পাদন করতে পারে, কারণ এটি ট্রান্সফার প্রক্রিয়ায় যুক্ত থাকে না।
-
ট্রান্সফার শেষ হলে DMA Controller একটি ইন্টারাপ্ট পাঠিয়ে CPU-কে অবহিত করে।
মূল সুবিধা:
-
CPU overhead কমায়, কারণ CPU কে প্রতিটি ডেটা ট্রান্সফারে জড়িত থাকতে হয় না।
-
সিস্টেমের কার্যক্ষমতা বৃদ্ধি করে, বিশেষত বড় আকারের ডেটা স্থানান্তরে।
-
এটি সাধারণত ডিস্ক, অডিও, ভিডিও এবং উচ্চ-গতির ডেটা ট্রান্সফারে ব্যবহৃত হয়।
ভুল বিকল্পগুলো:
-
(খ) শুধুমাত্র CPU নিয়ন্ত্রণে → এটি DMA-এর বিপরীত ধারণা।
-
(গ) মেমরি নির্দেশনা কার্যকর করে না; তা CPU-র কাজ।
-
(ঘ) DMA ক্যাশ মেমরির সাথে সম্পর্কিত নয়; এটি মেমরি ও I/O ডিভাইসের মধ্যে ডেটা স্থানান্তর নিয়ে কাজ করে।

0
Updated: 2 days ago
Using _____ order we can delete tree nodes in such a way that a child node is deleted before its parents
Created: 2 days ago
A
Pre
B
Post
C
In
D
Level
Answer: খ)
Post
Tree traversal orders:

0
Updated: 2 days ago