Computer Science: Chapter 2 Test Review

Computer Science: Chapter 2 Test Review

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

java

java

10th Grade

15 Qs

Class X - Java 1

Class X - Java 1

10th Grade

15 Qs

Java Level 1 - D

Java Level 1 - D

12th Grade

15 Qs

Ulangan C++ Class XI TKJ

Ulangan C++ Class XI TKJ

11th Grade

20 Qs

Программирование кобинированный тест

Программирование кобинированный тест

10th Grade

20 Qs

SK T4 1.3 Pemboleh Ubah, Pemalar dan Jenis Data

SK T4 1.3 Pemboleh Ubah, Pemalar dan Jenis Data

9th - 12th Grade

20 Qs

Arithmetic Types Declare Initialize Relation Logical Ops

Arithmetic Types Declare Initialize Relation Logical Ops

9th Grade - University

16 Qs

Computer Science: Chapter 2 Test Review

Computer Science: Chapter 2 Test Review

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Incredible

Used 95+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

When data cannot be changed after a class is compiled, the data is __________.

Constant

Variable

Volatile

Mutable

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not a primitive data type in Java?

Boolean

Byte

Int

Sector

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following elements is not required in a variable declaration?

A Type

An Identifier

An Assigned Value

A Semicolon

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The assignment operator in Java is __________.

=

==

:=

::

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Assuming you have declared shoeSize to be a variable of type int, which of the following is a valid assignment statement in Java?

shoeSize = 9;

shoeSize = 9.5;

shoeSize = '9';

shoeSize = "nine";

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following data types can store a value in the least amount of memory?

Short

Long

Int

Byte

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A boolean variable can hold __________.

Any Character

Any Whole Number

Any Decimal Number

The Value True Or False

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?