Which of the following are the types of loops in C++?
درج ذیل میں سے کون کون سی لوپسکی اقسام سی پلس پلس میں استعمال ہوتی ہیں؟
- For, While, Do-While
- If, Else, Switch
- Input, Output, Print
- Class, Object, Function
Explanation
There are 3 main types of loops in C++:
- For Loop (including the modern range-based for loop)
- While loop: repeats a statement or group of statements
- do-while loop: Like a while loop, except that it tests the condition at the end of the loop body
Last updated 07-09-2026 by NA
Related MCQs
کون سا آپریٹنگ سسٹم ملتے جلتے کاموں کو گروپ بنا کر بیچز کی صورت میں چلاتا ہے؟
- Real-time operating system
- Batch operating system
- Distributed operating system
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
کمپیوٹر کے مدر بورڈ پر سی ایم او ایس بیٹری کا کیا کام ہے؟
- To power the processor
- To maintain system time and BIOS/UEFI settings
- To increase internet speed
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
درج ذیل میں سے کون سی آپٹیکل اسٹوریج ڈیوائس کی مثال ہے؟
- SSD
- DVD Drive
- Hard drive
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
جی این یو آپریٹنگ سسٹم کا منصوبہ کس نے شروع کیا؟
- Bill Gates
- Steve Jobs
- Richard Stallman
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
مندرجہ ذیل میں سے کون سی غیر مستحکم میموری ہے؟
- RAM
- ROM
- Cache
- Both A and C