C ++ के संदर्भ में, लूप-स्टेटमेंट पर विचार करें:

while (5) {cout <<"Hello";}

Hello उपरोक्त लूप द्वारा __________ बार प्रदर्शित किया जाएगा।

This question was previously asked in
HTET PGT Official Computer Science Paper - 2019
View all HTET Papers >
  1. केवल एक
  2. पांच
  3. शून्य
  4. अनंत

Answer (Detailed Solution Below)

Option 4 : अनंत
Free
HTET PGT Official Computer Science Paper - 2019
4.3 K Users
60 Questions 60 Marks 60 Mins

Detailed Solution

Download Solution PDF

यह एक अनंत लूप है जो ब्रेक स्टेटमेंट के स्पष्ट रूप से जारी होने तक चलेगा।

while (5) corresponds to while(true)

कोड:

while(5)  //while(any non-zero integer)

{

/ loop runs infinitely

}

Hello, उपरोक्त लूप द्वारा अनंत बार समय प्रदर्शित किया जाएगा।

Latest HTET Updates

Last updated on Jun 6, 2025

-> The HTET TGT Applciation Portal will reopen on 1st June 2025 and close on 5th June 2025.

-> HTET Exam Date is out. HTET TGT Exam will be conducted on 26th and 27th July 2025

-> Candidates with a bachelor's degree and B.Ed. or equivalent qualification can apply for this recruitment.

-> The validity duration of certificates pertaining to passing Haryana TET has been extended for a lifetime.

-> Enhance your exam preparation with the HTET Previous Year Papers.

More While Loop Questions

Get Free Access Now
Hot Links: teen patti tiger teen patti casino teen patti 100 bonus rummy teen patti teen patti joy mod apk