Unit 1 Practice Quiz

Unit 1 Practice Quiz

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

AP CSA U1L01-03

AP CSA U1L01-03

11th - 12th Grade

18 Qs

Java Основи

Java Основи

11th Grade - University

16 Qs

Pemrograman C++ (Dasar)

Pemrograman C++ (Dasar)

11th Grade

18 Qs

Arrays in Java

Arrays in Java

9th - 12th Grade

20 Qs

Ch 3 Java Review-Strings and Math

Ch 3 Java Review-Strings and Math

9th - 12th Grade

21 Qs

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

9th - 12th Grade

20 Qs

AP Computer Science A Unit 1

AP Computer Science A Unit 1

9th - 12th Grade

19 Qs

Java Basics

Java Basics

12th Grade

17 Qs

Unit 1 Practice Quiz

Unit 1 Practice Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Gary Phelps

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which of the following is not a primitive data type?

int

bool

Scanner

double

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

How are variables stored?

on the hard drive

in the processor

in memory

they are not stored

3.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What is the value of x after this code runs?

int x = 3;

x = 7;

x = 15;

15

3

7

10

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What is the proper syntax to initialize a variable called moneyEarned to have the value of 37.9?

int moneyEarned = 37.9;

moneyEearned = (double)37.9;

(double)moneyEarned = 37.9;

double moneyEarned = 37.9;

5.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What is the result of this expression? (int) (13 + 2 / 4 + 3)

2

16

2.14

2.0

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What expression returns the 1's place of an integer x?

x % 100

x % 10

x / 10

x + 1

7.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What is the value of myInteger after this line of code is executed?

int myInteger = (int) 7.9;

8

7

79

0

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?