Java
Given two integer variables oldRecord and newRecord, write a statement that gives newRecord the same value that oldRecord has.
LANGUAGE: JAVA CHALLENGE: Given two integer variables oldRecord and newRecord, write a statement that gives newRecord the same value that oldRecord has.
Read MoreGiven an integer variable drivingAge that has already been declared, write a statement that assigns the value 17 to drivingAge.
LANGUAGE: JAVA CHALLENGE: Given an integer variable drivingAge that has already been declared, write a statement that assigns the value 17 to drivingAge.
Read MoreDeclare a variable populationChange, suitable for holding numbers like -593142 and 8930522.
LANGUAGE: JAVA CHALLENGE: Declare a variable populationChange, suitable for holding numbers like -593142 and 8930522.
Read MoreDeclare 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 More