Primitive Data Types & Strings

Ace your homework & exams now with Quizwiz!

float

A 32 bit data type that contains a decimal point.

double

A 64 bit floating point

string

Enclosed in quotation marks?

int

The appropriate data type for storing the number of Facebook users.

long

The largest integer group data type.

-128 to 127

The range of a byte is?

float, double

What belongs in the floating point data types group?

float

What is its data type of 3.14f?

short

What is the smallest data type that can represent the number 333?

-32768 to 32767

What is the supported range for a short data type?

char

Which of the data types is enclosed in apostrophes?

char

Which of the data types is used to represent this: 'm'

String

Which of the data types represent "Have a nice day!"

int

Which of the primitive data types has a maximum value of 2,147,483,648?

Boolean

Which of the primitives would be the best choice to represent whether or not an individual has already voted in this election?

boolean

true or false

String

"Happy Birthday"

char

'k'

short

16 bit integer

int

32 bit integer

long

64 bit integer

byte

8 bit integer

byte, short, int, long

List the increasing order by byte size of int, short, byte, long

String

Literal values that must be enclosed in "double quotes"?

char

Literal values that must be enclosed in 'apostrophes'?

String

Series of characters


Related study sets

Forensics Chapter 1 Checkpoint Questions

View Set

Unit 2 Assessment Great Greeks and Alexander the Great

View Set

The Tragedy of Julius Caesar by William Shakespeare: Act 1

View Set

HUM1020-Chp15: Chapter Fifteen: Globalism: Information, Communication, and the Digital Rev.

View Set

Retirement Planning: Retirement Needs Analysis (Module 1)

View Set

History of Rock and Roll Final Exam

View Set