Variables, Constants, and Data Types

Variables, Constants, and Data Types

10th Grade

15 Qs

quiz-placeholder

Similar activities

Python Programming Basics

Python Programming Basics

7th - 11th Grade

12 Qs

Data Representation

Data Representation

4th - 11th Grade

18 Qs

Binary, Denary and Hexadecimal

Binary, Denary and Hexadecimal

8th - 11th Grade

20 Qs

KS3 Computer Systems

KS3 Computer Systems

6th Grade - University

15 Qs

AQA Data Representation

AQA Data Representation

10th - 11th Grade

15 Qs

Computer Hardware/ Software Review

Computer Hardware/ Software Review

9th - 12th Grade

19 Qs

Welcome back ECS Review

Welcome back ECS Review

9th - 12th Grade

20 Qs

Creative Coding Test Review

Creative Coding Test Review

9th - 11th Grade

20 Qs

Variables, Constants, and Data Types

Variables, Constants, and Data Types

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Rolly Reyes

Used 60+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following statements about variable is not true?

A variable is a location in the memory of a computer.

A variable must have a specific and unique name.

Each variable has its own data type.

A variable is always initialized as soon as it is declared.

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The value of a constant remain fixed in the program code but can be altered when the program is running.

True

False

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not an integral numeric data type?

Integer

Long

Short

Decimal

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

If a variable can contain a fraction, which of the following data types can you use?

Single

Long

Short

Byte

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What numeric data type ranges from -2,147,483,648 through 2,147,483,647?

Integer

Long

Double

Decimal

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which numeric data type ranges from -32,768 through 32,767?

Short

Single

Byte

Long

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A Byte is a small integer data type that ranges from __________.

0 to 255

0 to 32,767

-256 to 255

-255 to 256

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?