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

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

University

18 Qs

quiz-placeholder

Similar activities

Pointer dan Fungsi

Pointer dan Fungsi

University

14 Qs

JavaScript Basics

JavaScript Basics

12th Grade - University

15 Qs

Java Operators

Java Operators

University

14 Qs

Functions in Computer Science

Functions in Computer Science

University

20 Qs

2D Array and Strings in C

2D Array and Strings in C

University

16 Qs

Week 9 - Functions and Pointers

Week 9 - Functions and Pointers

University

14 Qs

Java Post Hurricane D Check

Java Post Hurricane D Check

University

15 Qs

C-QUEST QUIZ BEE

C-QUEST QUIZ BEE

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?