CSD201_-_SU_2024_-_Block_5_-_FE_2653.webp
C

CSD201_-_SU_2024_-_Block_5_-_FE_2653.webp

Multiple Choices
၁ C
(Choose 1 answer)
Consider the following function:
void quiz(int n){if
(n > 1){quiz(n);
quiz(n);
}
System.out.print("* ");}
What will happen if the statement quiz(5); is run?
A. The program keeps running until you press Ctrl-C
B. The run-time stack overflows, halting the program
C. The operating system detects the infinite recursion because of the "repeated state"
D. The results are nondeterministic

Thông tin

Category
CSD201
Thêm bởi
cute_girl
Ngày thêm
Lượt xem
2,595
Lượt bình luận
13
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
CSD201_-_SU_2024_-_Block_5_-_FE_2653.webp
File size
87.7 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom