CS Primitive Types 1

CS Primitive Types 1

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

10AP Computer Science Review

10AP Computer Science Review

Data Types

Data Types

Java Values and Data Types Quiz

Java Values and Data Types Quiz

11-27 Data Types in Java

11-27 Data Types in Java

Java Variables Quiz

Java Variables Quiz

CS 2 Unit 1 Review

CS 2 Unit 1 Review

Java  Variables 1.1 to 1.4 Review

Java Variables 1.1 to 1.4 Review

CF1 Hardware and Intro to Java

CF1 Hardware and Intro to Java

CS Primitive Types 1

CS Primitive Types 1

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Christopher Spaulding

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is this new variable?

___ num = 3.14524;

double

int

String

boolean

char

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store whole numbers in Java?

double

int

Integer

boolean

dub

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid way to declare and initialize a String variable in Java?

String strVar = "Hello";

strVar = "World";

strVar = Hello;

String strVar;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store true or false values in Java?

integer

double

String

boolean

character

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store a single letter or symbol in Java?

integer

char

double

String

boolean

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store a sequence of characters/letters/symbols in Java?

integer

char

double

String

boolean

7.

DRAG AND DROP QUESTION

30 sec • 1 pt

What is the proper way to make an if statement?

if ​ ​ (a)   ​ (b)  

System.out.println("x is greater than 5")​ (c)  

​ (d)  

(x > 5)
{
;
}
x > 5
x > 5;
[x > 5]
(
)

Create a free account and access millions of resources

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?