Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.



Which statement has an initialization, condition check and increment expressions in its body? Write ..

Answer / Avinash Kumar Patel

The 'while' loop statement. Syntax: while (condition) {n initialize variables heren if (some_condition) {n // do somethingn }n increment or change variable heren}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

Define perl scripting?

1 Answers  


Explain the arguments for perl interpreter.

1 Answers  


Explain the difference between die and exit in perl?

1 Answers  


Explain regular expression in perl?

1 Answers  


How to open and read data files with Perl

1 Answers  


How to merge two arrays in perl?

1 Answers  


Write a script to reverse a string without using Perl's built in function

8 Answers   Nokia,


How many types of variable in perl?

1 Answers  


What is the use of strict?

1 Answers  


How do you you check the return code of a command in perl?

1 Answers   HCL,


What are the steps involved when the cgi program starts running?

1 Answers  


Mention the difference between die and exit in Perl?

1 Answers  


Categories