Unit 1 Practice Quiz

Unit 1 Practice Quiz

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Java Casting & Booleans

Java Casting & Booleans

10th - 12th Grade

20 Qs

CSAwesome Unit 1 Test

CSAwesome Unit 1 Test

12th Grade

18 Qs

Class X - Java 1

Class X - Java 1

10th Grade

15 Qs

AP CSA Unit 1 Review

AP CSA Unit 1 Review

10th - 12th Grade

20 Qs

Topic 4.5 Method Part 2

Topic 4.5 Method Part 2

12th Grade

19 Qs

Algoritmi Java

Algoritmi Java

11th Grade

20 Qs

9. Sınıf 2. Dönem 2. Yazılı Sınavı Çalışma Soruları

9. Sınıf 2. Dönem 2. Yazılı Sınavı Çalışma Soruları

9th Grade

20 Qs

2D Array Test

2D Array Test

9th Grade - University

20 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?