183k views
3 votes
HURRY HELP

A program contains an if statement followed by an else statement. When the condition in an if statement is met, what happens to the code that follows the else statement ?
it is a name error
it is a syntax error
it is ignored
it is executed

User Hlg
by
4.8k points

2 Answers

11 votes

Answer:

it is ingnored because the if statemeant has been met

Step-by-step explanation:

User Yershuachu
by
5.0k points
9 votes

Answer:

Step-by-step explanation:

syntax error - with this error the code cannot be executed, its a crucial error within the code

name error - misspell an identifier name, will stop the code from running

ignore error - could be something like grammar ignored, wont stop the code running

executed - it will crash the whole code stopping it from running if it involved any of the errors above

User Diogo Moreira
by
5.3k points