BACHELOR OF BUSINESS ADMINISTRATION

BUSINESS ADMINISTRATION

COMPUTER APPLICATION IN BUSINESS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Computer can’t perform the following function:
A
Read & Write
B
Compute & Compare
C
Execution of task without command
D
Access the data
Explanation: 

Detailed explanation-1: -Yes, we can execute a java program without a main method by using a static block. Static block in Java is a group of statements that gets executed only once when the class is loaded into the memory by Java ClassLoader, It is also known as a static initialization block.

Detailed explanation-2: -Every C program has a primary function that must be named main . The main function serves as the starting point for program execution. It usually controls program execution by directing the calls to other functions in the program.

Detailed explanation-3: -So actually C program can never run without a main() . We are just disguising the main() with the preprocessor, but actually there exists a hidden main function in the program. Source : LearnHacking.

Detailed explanation-4: -The one that doesn’t happen is that control returns to the point just before the function was called.

There is 1 question to complete.