51.Explain the role of break statement in switch case. What happens if break statement is not used in any case of switch statement? Break statement is used to skip the part of code in switch case statement. When one case …
121.What are the different errors during file I/O operations? How are errors handled during different file operations? Only few, out of many, errors during file I/O operations are listed below: •No such file or directory •Permission denied •Bad file number …
1. Describe briefly about FORTRAN programming language. Write its uses and application. FORTRAN is an acronym for FORmula TRANslation. It was designed to allow easy translation of math formulas into code. It was the first high-level language, using the first compiler ever …
111.When are array of structure used? Illustrate the difference in passing a single structure and array of structure to a function with example. When it is required to work with list of records containing various information, array of structure are …
91. Explain about array declaration and initialization for different data types. The array declaration and initialization for different data types are listed below: •One dimensional Array: ▪Declaration: data_type array_name[size]; ▪Examples: int num[5]; char list[10]; float marks[20]; ▪Initialization at declaration: oint …
71. What happens to the statements written after return statement? The statements after the return statement will not execute. Since the return statement sends the control back to the calling function, the control never reaches the statements written after return …
61. What are nested loops? When are they used? Nested loops are the combination of loops in which body or statements of one of the loops contain another loop. Nested loops can be formed combining different types of loop. •Presence …
51.Explain the role of break statement in switch case. What happens if break statement is not used in any case of switch statement? Break statement is used to skip the part of code in switch case statement. When one case …
41. What do you mean by selective structure? When are they used? Selective structures are those statements which are used to change the order of execution of statements based on certain decision out of many conditions. These structures are used …
