FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Romina wants to input whole numbers (that do not contain a decimal) into variables in the inventory program she is coding. What variable data type should she use?
A
Floating point
B
Boolean
C
Integer
D
String
Explanation: 

Detailed explanation-1: -1. Integer Data Type. An integer type variable can store zero, positive, and negative values without any decimal. In C language, the integer data type is represented by the ‘int’ keyword, and it can be both signed or unsigned.

Detailed explanation-2: -Answer. Explanation: Numbers that contain a decimal point are stored in a data type called REAL. Variables that use the real data type can accept both positive and negative numbers with a decimal place.

Detailed explanation-3: -A Boolean expression is a logical statement that is either TRUE or FALSE . Boolean expressions can compare data of any type as long as both parts of the expression have the same basic data type.

Detailed explanation-4: -Sequence is the default control structure; instructions are executed one after another.

There is 1 question to complete.