CodeHS Unit 2: Lessons 4 - 8

CodeHS Unit 2: Lessons 4 - 8

10th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

Coding District Test Prep Form I

Coding District Test Prep Form I

12th Grade

18 Qs

G3M6

G3M6

10th Grade

10 Qs

T-Level DPDD: Python Operators Quiz

T-Level DPDD: Python Operators Quiz

11th Grade

18 Qs

Java Boolean Statements

Java Boolean Statements

11th Grade

11 Qs

Python Strings

Python Strings

8th - 12th Grade

14 Qs

AP Computer Science Principles - Unit 4: Variables, Conditionals

AP Computer Science Principles - Unit 4: Variables, Conditionals

9th - 12th Grade

10 Qs

Java Basic 1 - Quiz

Java Basic 1 - Quiz

8th Grade - University

19 Qs

Codecademy JavaScript

Codecademy JavaScript

9th - 12th Grade

16 Qs

CodeHS Unit 2: Lessons 4 - 8

CodeHS Unit 2: Lessons 4 - 8

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

Courtney Yatteau

Used 10+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the expression?

13%7

7

6

2

1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the below is NOT a Java arithmetic operator?

+

-

#

/

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the expression?

11%4

1

2

3

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is casting in Java?

What Karel does when she breaks her leg.

Casting is turning a value of one type into another type.

Casting is truncating the decimal value to turn into an integer.

Casing is a way to print integers to the screen.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this Java expression evaluate to?

(int)12.9

12.9

12

13

12.90

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a boolean in Java?

A true or false value

An on or off value

A single character or string

A sequence of characters or numbers

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the answers below is an example of a boolean?

On

"true"

"T"

true

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?