COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
String
|
|
Boolean
|
|
Integer
|
|
Date time
|
Detailed explanation-1: -Integer variables hold values that have no fractional part (that is, whole numbers only).
Detailed explanation-2: -An integer is a type of value that can be stored in a variable. Integers are whole numbers that can be positive, negative, or zero. Definition: Integers are values written and stored as numbers and are often called “ints”. Integers are used to store values and run loops.
Detailed explanation-3: -You can define a variable as an integer and assign a value to it in a single declaration. For example: int age = 10; In this example, the variable named age would be defined as an integer and assigned the value of 10.
Detailed explanation-4: -Variable Types Integers can have only whole number values (both positive and negative) and you can use the standard arithmetic operators ( +, -, and so on) on integers to perform the standard arithmetic operations (addition, subtraction, and so on).