COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Variables can hold different types of data, and they are classified based on the type of data they hold. The numbers 7.5, 2.1 and 48.6 would be stored using which variable data type?
A
Boolean
B
Floating Point
C
String
D
Integer
Explanation: 

Detailed explanation-1: -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-2: -The basic Control Structures in programming languages are: Conditionals (or Selection): which are used to execute one or more statements if a condition is met. Loops (or Iteration): which purpose is to repeat a statement a certain number of times or while a condition is fulfilled.

There is 1 question to complete.