• 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. Direct Memory Access
  2. Direct Module Access
  3. Direct Memory Allocation
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

ڈی او ایس کا مطلب کیا ہے؟
  1. Digital operating system
  2. Disk operation system
  3. Disk operating system
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

کسی مخصوص کام کو انجام دینے کے لیے کمپیوٹر کو دی گئی ہدایات کس کا مجموعہ ہے۔
  1. Monitor
  2. Hardware
  3. software
  4. Printer
اس سوال کو وضاحت کے ساتھ پڑھیں

لائٹ قلم کیا ہے؟
  1. Mechanical Input device
  2. Optical input device
  3. Electronic input device
  4. Optical output device
  5. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

ایک (1) بائٹ کس کے برابر ہے؟
  1. 4 bits
  2. 8 bits
  3. 12 bits
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com