(vii) State the type of loop in the given program segment:
for (int i=5;i!=0;i-=2)
System.out.println(i);

(a) finite
(b) infinite
(c) null
(d) fixed


Solution



(b) infinite


Contact Us

REACH US

SERVICES

  • CODING
  • ON-LINE PREPARATION
  • JAVA & PYTHON

ADDRESS

B-54, Krishna Bhawan, Parag Narain Road, Near Butler Palace Colony Lucknow
Contact:+ 919839520987
Email:info@alexsir.com