AP CSA Midterm Concept Review 1

AP CSA Midterm Concept Review 1

12th Grade

20 Qs

quiz-placeholder

Similar activities

AP CSA Arrays

AP CSA Arrays

9th - 12th Grade

18 Qs

Java Basic 1 - Quiz

Java Basic 1 - Quiz

8th Grade - University

19 Qs

Programación java básico

Programación java básico

12th Grade

21 Qs

Java Programming Quiz

Java Programming Quiz

12th Grade

17 Qs

Java Fundamentals

Java Fundamentals

12th Grade

15 Qs

004_Java Instance Variables

004_Java Instance Variables

12th Grade - University

15 Qs

JavaScript Basics

JavaScript Basics

12th Grade - University

15 Qs

AP CSA Java Arrays

AP CSA Java Arrays

9th - 12th Grade

18 Qs

AP CSA Midterm Concept Review 1

AP CSA Midterm Concept Review 1

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Avacado Tomato

FREE Resource

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

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?