
Chapter 1 - 2 Review -- 4-8-2024
Authored by Devon Morgan
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
18 questions
Show all answers
1.
OPEN ENDED QUESTION
5 mins • 5 pts
Create a basic Object instance of the Aircraft Class
Evaluate responses using AI:
OFF
Answer explanation
Aircraft myAir = new Aircraft();
2.
OPEN ENDED QUESTION
5 mins • 5 pts
Create an Object instance of the Employee class with the initialization of the Object employee name Goku, and employee number 848.
Evaluate responses using AI:
OFF
Answer explanation
Employee myEmp = new Employee("Goku", 848);
3.
OPEN ENDED QUESTION
3 mins • 5 pts
Declare and initialize a variable called milesPerGallon with the primitive type double and a value of 22.5
Evaluate responses using AI:
OFF
Answer explanation
double milesPerGallon = 22.5;
4.
OPEN ENDED QUESTION
3 mins • 3 pts
Declare a private variable called engineer, as a string type, with no initialization
Evaluate responses using AI:
OFF
Answer explanation
private String engineer;
5.
OPEN ENDED QUESTION
3 mins • 3 pts
Write the code that creates and assigns the long variable salary with the value 100000.
Evaluate responses using AI:
OFF
Answer explanation
long salary = 100000;
6.
OPEN ENDED QUESTION
3 mins • 3 pts
Create the code that assigns the value of height + 10 to the double variable width
Evaluate responses using AI:
OFF
Answer explanation
double width = height + 10;
7.
OPEN ENDED QUESTION
5 mins • 5 pts
Create a int variable called perHour with an initial value initialized 20. Then, change the value to 60 through assigning.
Evaluate responses using AI:
OFF
Answer explanation
int perHour = 20;
perHour = 60;
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?