MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

ALGORITHMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
____ is used to denote when the program will stop.
A
FINISH
B
BEGIN
C
END
D
ELSE
Explanation: 

Detailed explanation-1: -The end statement statement is used to terminate the program. Explanation: The end statement is the last line of the program or function.

Detailed explanation-2: -The end command can also be used to stop a TCL command that was sent to another line by the tcl command, or to terminate a phantom job. The end command clears an active list and requires a sys2 privilege level. If the port number and user-ID are not specified, the end command stops the process on the current line.

Detailed explanation-3: -The end statement is the last line of the program or function. The stop or return statements are used for normal termination and exit is used for abnormal termination.

Detailed explanation-4: -Period. A period marks the end of a declarative sentence: a statement of fact.

Detailed explanation-5: -C library function-exit() The C library function void exit(int status) terminates the calling process immediately. Any open file descriptors belonging to the process are closed and any children of the process are inherited by process 1, init, and the process parent is sent a SIGCHLD signal.

There is 1 question to complete.