This topic contains a solution. Click here to go to the answer

Author Question: What happens if you attempt to use a variable before it has been initialized? (Read 205 times)

Themember4

  • Hero Member
  • *****
  • Posts: 538

Question 1

The String class' compareTo method
◦ compares two string in a case-independent manner
◦ yields true or false
◦ yields 0 if the two strings are identical
◦ returns 1 if the first string comes lexically before the second string
◦ none of these

Question 2

What happens if you attempt to use a variable before it has been initialized?
◦ A syntax error may be generated by the compiler
◦ A runtime error may occur during execution
◦ A "garbage" or "uninitialized" value will be used in the computation
◦ A value of zero is used if a variable has not been initialized
◦ Answers A syntax error may be generated by the compiler and A runtime error may occur during execution  are correct


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by Themember4 on Aug 30, 2020

katheyjon

  • Sr. Member
  • ****
  • Posts: 331
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 39% of students answer this correctly




Themember4

  • Member
  • Posts: 538
Reply 2 on: Aug 30, 2020
Thanks for the timely response, appreciate it


matt95

  • Member
  • Posts: 317
Reply 3 on: Yesterday
Wow, this really help

 

Did you know?

A strange skin disease referred to as Morgellons has occurred in the southern United States and in California. Symptoms include slowly healing sores, joint pain, persistent fatigue, and a sensation of things crawling through the skin. Another symptom is strange-looking, threadlike extrusions coming out of the skin.

Did you know?

Acetaminophen (Tylenol) in overdose can seriously damage the liver. It should never be taken by people who use alcohol heavily; it can result in severe liver damage and even a condition requiring a liver transplant.

Did you know?

Every 10 seconds, a person in the United States goes to the emergency room complaining of head pain. About 1.2 million visits are for acute migraine attacks.

Did you know?

The cure for trichomoniasis is easy as long as the patient does not drink alcoholic beverages for 24 hours. Just a single dose of medication is needed to rid the body of the disease. However, without proper precautions, an individual may contract the disease repeatedly. In fact, most people develop trichomoniasis again within three months of their last treatment.

Did you know?

Certain chemicals, after ingestion, can be converted by the body into cyanide. Most of these chemicals have been removed from the market, but some old nail polish remover, solvents, and plastics manufacturing solutions can contain these substances.

For a complete list of videos, visit our video library