FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
set of rules performed if a certain condition is me, often referred to as if/then statements
A
computer program
B
conditional statement
C
function
D
algorithm
Explanation: 

Detailed explanation-1: -A conditional statement is a set of rules considered valid if certain conditions are met. They start with a hypothesis and end with a conclusion and are sometimes referred to as if-then statements.

Detailed explanation-2: -If–then arguments, also known as conditional arguments or hypothetical syllogisms, are the workhorses of deductive logic. They make up a loosely defined family of deductive arguments that have an if–then statement-that is, a conditional-as a premise. The conditional has the standard form If P then Q.

Detailed explanation-3: -A conditional statement (also called an if-then statement) is a statement with a hypothesis followed by a conclusion. The hypothesis is the first, or “if, ” part of a conditional statement. The conclusion is the second, or “then, ” part of a conditional statement. The conclusion is the result of a hypothesis.

Detailed explanation-4: -Sally eats a snack if she is hungry. In if-then form, the statement is If Sally is hungry, then she eats a snack. The hypothesis is Sally is hungry and the conclusion is she eats a snack.

Detailed explanation-5: -An if statement tells the program to execute a block of code, if a condition is true. In the code below, we output a message only if x is greater than 0: var x = 5; if (x > 0) text(’x is a positive number!’, 200, 200); Since x is 5, which is greater than 0, we would see the message on the canvas.

There is 1 question to complete.