Posts Tagged ‘Java’
Declare a variable x, suitable for storing values like 3.14159 and 6.02E23.
LANGUAGE: JAVA CHALLENGE: Declare a variable x, suitable for storing values like 3.14159 and 6.02E23.
Read MoreDeclare a float variable named price.
LANGUAGE: JAVA CHALLENGE: Declare a float variable named price.
Read MoreDeclare a long integer variable named grossNationalProduct.
LANGUAGE: JAVA CHALLENGE: Declare a long integer variable named grossNationalProduct.
Read MoreDeclare a short variable named patientsAge.
LANGUAGE: JAVA CHALLENGE: Declare a short variable named patientsAge.
Read MoreDeclare an integer variable named degreesCelsius.
LANGUAGE: JAVA CHALLENGE: Declare an integer variable named degreesCelsius.
Read MoreBefore a variable is used it must be A) defined B) declared C) imported D) evaluated E) assigned
LANGUAGE: JAVA CHALLENGE: Before a variable is used it must be A) defined B) declared C) imported D) evaluated E) assigned
Read MoreWhich of the following names in a program is equivalent to the name int? A) Int B) INT C) All of the above D) None of the above
LANGUAGE: JAVA CHALLENGE: Which of the following names in a program is equivalent to the name int? A) Int B) INT C) All of the above D) None of the above
Read MoreAn identifier that cannot be used as a variable name is a word.
LANGUAGE: JAVA CHALLENGE: An identifier that cannot be used as a variable name is a word.
Read MoreWhich of the following IS a legal identifier? A) 5_And_10 B) Five_&_Ten C) ____________ D) LovePotion#9 E) “Hello World”
LANGUAGE: JAVA CHALLENGE: Which of the following IS a legal identifier? A) 5_And_10 B) Five_&_Ten C) ____________ D) LovePotion#9 E) “Hello World”
Read MoreWhich of the following is NOT a legal identifier? A) outrageouslyAndShockinglyLongRunon B) _42 C) _ D) lovePotionNumber9 E) 7thheaven
LANGUAGE: JAVA CHALLENGE: Which of the following is NOT a legal identifier? A) outrageouslyAndShockinglyLongRunon B) _42 C) _ D) lovePotionNumber9 E) 7thheaven
Read MoreRearrange the following code so that it forms a correct program that prints out the letter Q:
LANGUAGE: JAVA CHALLENGE: Rearrange the following code so that it forms a correct program that prints out the letter Q:
Read MoreWrite a complete program whose class name is Hello and that displays Hello, world on the screen.
LANGUAGE: JAVA CHALLENGE: Write a complete program whose class name is Hello and that displays Hello, world on the screen.
Read More