1: | Which command will you use to add the values of two variables VAR1 and VAR2 , and store the result in VAR3 ?
|
2: | You want to wait for 10 seconds at the end of the loop in each loop cycle. Which command will you use?
|
3: | Consider the following code segment. How many times does the loop execute? A=1 until [ $A < 10 ] do echo $A (( $A=$A+1)) done
|
4: | What will be the output of the program shown here? #!/usr/bin/sh A=1 while [ $A -lt 10 ] do B=1 while [ $B -lt 10 ] do break 2 echo "Inner loop" done echo "Outer Loop" done
|
5: | While writing a program, you meet a situation where you want to break the normal execution and shift control to the beginning of the loop, skipping the remaining commands in the loop. Which command will you use?
|
Top |