Java Games: Flashcards, matching, concentration, and word search.

Beginning Computer Programming: Data Types

Learn the purpose, range, and names of data types used in C++.

AB
A potentially longer version of int..long
A string of characters forming a sentence or phrasestring
A single char variable stores a single alphabetic or digital character; not suitable for arithmeticchar
A larger version of a float that takes more memory but has more accuracy and greater rangedouble
A variable/data type used for real numbersfloat
A variable/data type used for counting either positive or negativeint
Three basic places where variables are declared.Inside functions (local variables), in the definition of function parameters (formal parameters), outside all functions (global variables)
The typical size in bits for the long double data type.Answer: 80
The typical size in bits for the double and long double data typeAnswer: ten digits of precision
The minimal range for the float data type.Answer: -six digits of precision
The typical size in bits for the double data type.Answer: 64
The minimal range for the unsigned long int data type.Answer: 0 to 4,294,967,295
The minimal range for the long int or signed long intr data typeAnswer: -2,147,483,647 to 2,147,483,6447
The typical size in bits for the float, long int, signed long int, unsigned long int data type.Answer: 32
The typical size in bits for the short int, unsigned short int, signed short int data type.Answer: 16
The minimal range for the unsigned int or unsigned short int data type.Answer: 0 to 65, 535
The minimal range for the int, signed int, short int, or signed short int data type.Answer: -32,767 to 32,767
The typical size in bits for the int, unsigned int, or signed int data type.Answer: 16 or 32
The minimal range for the unsigned char data type.Answer: 0-255
The minimal range for the char or signed char data type.Answer: -127 to 127
The typical size in bits for the char, unsigned char or signed char data type.Answer: 8 bits
Four modifiers of basic data types.Answer: signed, unsigned, long, short
The five basic data types used in programming.Answer: character, integer, floating-point, double floating-point, and valueless (char, int, float, double, void, respectively)


Liz and Steve Guerrini

This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities