Chapter 1 - 2 Review -- 4-8-2024

Chapter 1 - 2 Review -- 4-8-2024

University

18 Qs

quiz-placeholder

Similar activities

1st session

1st session

University

15 Qs

Loops-2

Loops-2

University

15 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

C++ Quiz

C++ Quiz

University

20 Qs

POS - Prelim Examination

POS - Prelim Examination

University

20 Qs

Python_2R

Python_2R

KG - Professional Development

20 Qs

UTSSKDP1

UTSSKDP1

University

13 Qs

OOP - Pretest

OOP - Pretest

University

20 Qs

Chapter 1 - 2 Review -- 4-8-2024

Chapter 1 - 2 Review -- 4-8-2024

Assessment

Quiz

Computers

University

Easy

Created by

Devon Morgan

Used 2+ times

FREE Resource

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;

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?