24,806 views
11 votes
11 votes
1. A _______ causes the computer program to behave in an incorrect or unexpected way.

A. Loop
B. Bug
C. Variable
D. Syntax

User Bimzee
by
2.9k points

2 Answers

20 votes
20 votes

Answer:

Bug

Step-by-step explanation:

A bug causes the computer program to behave in an incorrect or unexpected way.

User Vcampitelli
by
3.0k points
21 votes
21 votes

Answer:

A bug causes the computer program to behave in an incorrect or unexpected way.

Step-by-step explanation:

Let’s look into the following choices and their (brief) meaning. Please let me know in the comment if you have any questions regarding my answer. (E.g clarification)

What is “Loop”?

We all know what loop’s meaning is. In both English and Computer, it means the same thing - to do the things over and over again. Loop in programming languages depend on the languages themselves - there exist the for loop, for in loop, while loop, etc.

What is “Bug”?

Bug can have many various meanings, depending on the context. It can mean an insect but since we are on computer topic right now - obviously, we are talking about a bug that happens to a device or software, something that’s not supposed to happen - that’s what a bug is. An example is you are playing a game and somehow, you find a bug that make your car fly although it’s not implemented in the code itself.

What is “Variable”?

When we are on computer science, of course, maths will always be in the way. Variables work almost the same as how they work in mathematics. When you let x = 4, you declare that x = 4. Variables simply mean to declare one term/variable/character to another types. Some examples are:

  • data = [1,2,3,4,5]
  • x = 4, y = 5, z = x+y

What is “Syntax”?

When you are writing a code, sometimes you will end up misplace or forget the syntax. See the following simple code in python below:

  • print(“Hello, World)

Can you tell me what is missing? Exactly, the another “ is missing! So the code will not be run and output as an error for not using the correct syntax. Now, you know why your code isn’t running so you add another “ and now you have print(“Hello, World”). Hooray, your code works now.

User Jodyann
by
3.0k points