Examlex

Solved

After the Following Program Is Finished, How Many Bytes Are

question 16

Multiple Choice

After the following program is finished, how many bytes are written to the file t.dat? import java.io.*;
Public class Test {
Public static void main(String[] args) throws IOException {
DataOutputStream output = new DataOutputStream(
New FileOutputStream("t.dat") ) ;
Output.writeShort(1234) ;
Output.writeShort(5678) ;
Output.close() ;
}
}


Definitions:

Variable Costs

Costs that change in proportion to the level of output or activity in a business.

Square Feet

A measure of area in the imperial system, used to calculate the size of a space, equivalent to the area of a square with sides one foot in length.

Variable Costs

Costs that vary directly with the level of production or output.

Square Feet

A unit of area measurement equal to a square that is one foot on each side.

Related Questions