COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Selection
A
A generic term for a type of programming statement (usually an if-statement) that uses a Boolean condition to determine, or select, whether or not to run a certain block of statements.
B
Putting commands in correct order so computers can read the commands.
C
To repeat in order to achieve, or get closer to, a desired goal.
D
A named group of programming instructions. Functions are reusable abstractions that reduce the complexity of writing and maintaining programs.
Explanation: 

Detailed explanation-1: -Selection-A generic term for a type of programming statement (usually an if-statement) that uses a Boolean condition to determine, or select, whether or not to run a certain block of statements.

Detailed explanation-2: -Conditional statements are used through the various programming languages to instruct the computer on the decision to make when given some conditions. These decisions are made if and only if the pre-stated conditions are either true or false, depending on the functions the programmer has in mind.

Detailed explanation-3: -A conditional statement tells a program to execute an action depending on whether a condition is true or false.

Detailed explanation-4: -In programming, a great example of a condition is a password. Passwords are “if, then” logic statements: If a user enters the correct password, then they can access the program.

There is 1 question to complete.