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 206 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
Great answer, keep it coming :)


ryhom

  • Member
  • Posts: 366
Reply 3 on: Yesterday
Excellent

 

Did you know?

Sperm cells are so tiny that 400 to 500 million (400,000,000–500,000,000) of them fit onto 1 tsp.

Did you know?

In the United States, there is a birth every 8 seconds, according to the U.S. Census Bureau's Population Clock.

Did you know?

On average, the stomach produces 2 L of hydrochloric acid per day.

Did you know?

You should not take more than 1,000 mg of vitamin E per day. Doses above this amount increase the risk of bleeding problems that can lead to a stroke.

Did you know?

The toxic levels for lithium carbonate are close to the therapeutic levels. Signs of toxicity include fine hand tremor, polyuria, mild thirst, nausea, general discomfort, diarrhea, vomiting, drowsiness, muscular weakness, lack of coordination, ataxia, giddiness, tinnitus, and blurred vision.

For a complete list of videos, visit our video library