MCQOPTIONS
Saved Bookmarks
This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is the syntax of continue statement? |
| A. | continue |
| B. | continue n |
| C. | continue this |
| D. | All of the above |
| E. | |
| Answer» B. continue n | |
| 2. |
Which of the following statement causes the current iteration of the loop to exit, rather than the entire loop? |
| A. | Continue |
| B. | break |
| C. | return |
| D. | goto |
| Answer» B. break | |
| 3. |
Continue statment cannot be used in which loop? |
| A. | For loop |
| B. | until loop |
| C. | while loop |
| D. | case...esac |
| Answer» E. | |
| 4. |
Which of the following statement is supported in unix shell? |
| A. | case |
| B. | Switch |
| C. | switch...case |
| D. | case...esac |
| Answer» E. | |
| 5. |
What is the syntax of break command that can also be used to exit from a nested loop? |
| A. | break |
| B. | break loop |
| C. | break n |
| D. | break n+i |
| Answer» D. break n+i | |
| 6. |
Which of the following statement is used to terminate the execution of the entire loop? |
| A. | continue |
| B. | terminate |
| C. | this |
| D. | break |
| Answer» E. | |
| 7. |
A loop may continue forever if the required condition is not met is known as ____________. |
| A. | finite loop |
| B. | infinite loop |
| C. | simple loop |
| D. | definate loop |
| Answer» C. simple loop | |
| 8. |
Which of the following statements that are used to control shell loops? |
| A. | break |
| B. | continue |
| C. | Both A and B |
| D. | None of the above |
| Answer» D. None of the above | |
| 9. |
The _______ loop executes the given commands until the given condition remains true. |
| A. | For loop |
| B. | While loop |
| C. | until loop |
| D. | Both B and C |
| Answer» C. until loop | |
| 10. |
Which of the following loops is not available in shell? |
| A. | The for loop |
| B. | The until loop |
| C. | The select loop |
| D. | The foreach loop |
| Answer» E. | |