PRJ301_-_SP_2024_-_Block_5_-_FE_1939.webp
K

PRJ301_-_SP_2024_-_Block_5_-_FE_1939.webp

(Choose 1 answer)
<% int sum = 0;
Assume that you need to write a JSP page that adds numbers from one to ten, and then print the output.
for(j = 0; j < 10; j++) { %>// XXX --- Add j to sum
<% } %>
// YYY --- Display the sum
Which statement when placed at the location XXX can be used to compute the sum?
A. <% sum = sum + j %>
B. <% sum = sum + j; %>
C. <%= sum = sum + j %>
D. <%= sum = sum + j; %>


Q: 24
  • Like
Reactions: seloena

Thông tin

Category
PRJ301
Thêm bởi
Khánh Duy1
Ngày thêm
Lượt xem
2,650
Lượt bình luận
33
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRJ301_-_SP_2024_-_Block_5_-_FE_1939.webp
File size
169.3 KB
Dimensions
1920px x 930px

Share this media

Back
Bên trên Bottom