Search Header Logo

AP CSA Midterm Concept Review 1

Authored by Avacado Tomato

Computers

12th Grade

AP CSA Midterm Concept Review 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type used to store a single character in Java?

boolean

char

String

int

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid data type in Java: int, float, string, char?

string

boolean

long

double

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of the int data type in Java?

1 byte

4 bytes

8 bytes

2 bytes

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to implement a conditional statement in Java?

if

else

then

maybe

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a control structure in Java: if-else, switch, for loop, function?

if-else

switch

for loop

function

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'this' keyword in Java?

To refer to a different class

To refer to the current instance of the class

To access a static method

To create a new instance of the class

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the process of combining data and functions into a single unit called in object-oriented programming?

Inheritance

Abstraction

Encapsulation

Polymorphism

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?