A programmer is building a script that will test a condition of either true or false. Which data type would the programmer use?

IT Exam Items RepositoryCategory: IT EssentialsA programmer is building a script that will test a condition of either true or false. Which data type would the programmer use?

A programmer is building a script that will test a condition of either true or false. Which data type would the programmer use?

  • float
  • Bool
  • int
  • char

Explanation: The basic data types used in a script include:

  • int represents integers
  • char represents characters
  • float represents decimal numbers
  • strings represent alphanumeric characters
  • Bool represents true or false

Related exam: IT Essentials A+ 220-1102 Certification Practice Exam Answers