Search Header Logo

Unit 1 Practice Quiz

Authored by Gary Phelps

Computers

9th - 12th Grade

Unit 1 Practice Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?