Computer Applications
Which of the following statement is true for logical errors?
- The compiler does not detect these errors.
- There is no indication of error when the program is executed.
- The program may produce correct results for some input data and wrong results for other input data.
- All of the above
Input in Java
8 Likes
Answer
All of the above
Reason — The compiler does not detect logical errors and there is no indication of error when the program is executed. The program may produce correct results for some input data and wrong results for other input data.
Answered By
4 Likes
Related Questions
What will be the output of the following code?
int size = 2; if (size < 0) System.out.println("Small"); else if (size == 0) System.out.println("Medium"); else System.out.println("Large");- Small
- Large
- Medium
- Runtime error
Which of the following statements involves a fall through?
- if-else
- for loop
- if-else-if
- switch
Object oriented programming mainly uses
- top down approach
- top down and bottom up approach
- bottom up approach
- None of the above
In which technique are the values of actual parameters copied to the formal parameters?
- Call by reference
- Call by value
- Call by argument
- Call by method