Programming
October 18, 2023Programming
October 18, 2023NTA-UGC-NET 2021 Dec & 2022 June Paper-2
Question 24
|
Of the following, which is NOT a logical error?
Using the ‘=’, instead of ‘==’ to determine if two values are equal
|
|
Divide by zero
|
|
Failing to initialize counter and total variables before the body of loop.
|
|
Using commas instead of two required semicolon in a for loop header
|
Correct Answer: B
The answer should be “Divide by zero”, which is not a logical error but a runtime error.