• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
Which loop is suitable to use in situations where the programmer does not know the number of time the body of the loop will be executed?
کون سا لوپ ان حالات میں استعمال کرنے کے لئے موزوں ہے جہاں پروگرامر کو معلوم نہیں ہوتا ہے کہ لوپ کے جسم کو کس وقت کی تعداد میں پھانسی دی جائے گی؟
  1. Nested loop
  2. Do-while loop
  3. For loop
  4. None of these
Explanation

The do-while loop is useful when the loop must run at least once, even if the condition is false initially.

It's suitable when the number of iterations is not known in advance and depends on runtime conditions.

Related MCQs

ایپلیکیشن لینگویج کو کس قسم کی زبان بھی کہا جاتا ہے؟
  1. High-level language
  2. Low-level language
  3. Machine language
  4. Assembly language
اس سوال کو وضاحت کے ساتھ پڑھیں

میک آپریٹنگ سسٹم کو _____ نے تیار کیا ہے؟
  1. Samsung
  2. Microsoft
  3. Apple
  4. IBM
اس سوال کو وضاحت کے ساتھ پڑھیں

ایک مرتب کیا ہے؟
  1. A compiler is a special program that processes statements written in a particular programming language and turns them into machine language
  2. A compiler is a language providing very efficient execution
  3. A compiler does a conversion line by line as the program is run
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

درج ذیل میں سے کون سا اینڈرائیڈ کے آفیشل ورژن کا کوڈ نام نہیں ہے؟
  1. Muffin
  2. Cupcake
  3. Donut
  4. Lollipop
اس سوال کو وضاحت کے ساتھ پڑھیں

کسی ویب سائٹ کو صارف کی شناخت یاد رکھنے میں کون سی چیز مدد دیتی ہے؟
  1. Cookies
  2. Firewall
  3. Cache
  4. Compiler
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com