Which of the following should be defined as a void method?

a. Write a method that prints integers from 1 to 100.
b. Write a method that returns a random integer from 1 to 100.
c. Write a method that checks whether a number is from 1 to 100.
d. Write a method that converts an uppercase letter to lowercase.


a

Computer Science & Information Technology

You might also like to view...

Which of the following is not true about declaring references to objects of other classes inside a class definition?

a. These references can be initialized inside the class definition. b. Each reference only requires enough memory to store the memory address of the object it references. c. If the class names for the other objects are used only to declare references, a forward declaration can be used to tell the compiler that the class name represents a type. d. These references can represent directional associations from a UML class diagram.

Computer Science & Information Technology

You would use Word's ________ tool to trim the edges of a picture that you do not want displayed

Fill in the blank(s) with correct word

Computer Science & Information Technology

Summarizing a site's goals and objectives into a formal _________________________ for the site can help set the stage for its development, as shown in the accompanying figure.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Gina is upgrading your computer with a new processor. She installs the processor into your motherboard and adds the cooling system. She powers up the computer, and it begins to boot but then shuts down.   What could be the cause of this problem?

A. Computer is overclocked. B. Thermal paste was not used. C. Processor is not compatible. D. Processor is not seated properly.

Computer Science & Information Technology