Incomplete question. I could only infer you are possibly referring to edhesive unit 8 questions. Here are a few sample questions;
1. Where does Python start?
2. To create the body of a function, we ____________ the code.
Answer:
1. Main Section
2. Indent
Explanation:
1. It is a common rule in Python programming language when coding for for it to begin at the first part of the Main Section.
2. Indenting a code involves creating space or jumping a line away from the margin of the text dialogue box, thus the code written there becomes the body of the function.
Answer:
The following code is written in java programming language:
//set if statement
if (((modelYear >= 1999) && (modelYear <= 2002) && (modelName == "Extravagant")) || ((modelYear >= 2004) && (modelYear <= 2007) && (modelName == "Guzzler")))
{
recalled = true; //initialized Boolean value
}
else //set else statement
{
recalled = false; ////initialized Boolean value
}
Explanation:
Here, we set the if statement and set condition, if the value of modelYear is greater than equal to 1999 and less that equal to 2002 and modelName is equal to "Extravagant" or the value of modelYear is greater than equal to 2004 and less than equal to 2007 and the model year is equal to "Guzzler", than "recalled" initialized to "true".
Otherwise "recalled" initialized to "true".
Answer:
Double eleventh = 11.50;
David_Tennant = eleventh.intValue();
Explanation:
These two statements are correct. Method intValue() converts Integer to int which is is called unboxing. In this case intValue() method converting Integert part of eleventh variable then storing it in int variable David_Tennant. Output will be 11.