Home > Articles

Compare and Contrast Fundamental Data Types and Their Characteristics

  • Print
  • + Share This

In this sample chapter from CompTIA IT Fundamentals+ FC0-U61 Cert Guide, you will learn how to compare and contrast fundamental data types and their characteristics: char, strings, numbers (integers and floats), and Boolean.

This chapter is from the book

Whether you’re programming, crunching numbers with spreadsheets, or figuring out binary logic, understanding the fundamental data types used by Information Technology is foundational. In this chapter, you learn about IT Fundamentals+ Objective 1.2: Compare and contrast fundamental data types and their characteristics: char, strings, numbers (integers and floats), and Boolean.

Foundation Topics

 

Char

Char is an abbreviation for character. Many programming languages use char as a reserved keyword, including Visual Basic, SQL, Java, C languages, and others. Char is a data type that refers to a single character or a single-character variable. For example, each of the following is a char data type:

  • 1

  • 2

  • A

  • Z

  • x

  • #

  • !

A char is equal to 1 byte.

  • + Share This
  • 🔖 Save To Your Account