
Câu hỏi về vòng lặp trong Java
Authored by Kiều Thị
Fun
1st - 12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp nào sau đây là đúng cho vòng lặp for trong Java?
for (initial-action; loop-continuation-condition; action-after-each-iteration) { statement(s); }
for { statement(s); } (initial-action; loop-continuation-condition; action-after-each-iteration)
for (loop-continuation-condition) { statement(s); initial-action; action-after-each-iteration; }
for (action-after-each-iteration; initial-action; loop-continuation-condition) { statement(s); }
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phần nào trong vòng lặp for được thực thi một lần duy nhất khi vòng lặp bắt đầu chạy?
statement(s)
loop-continuation-condition
initial-action
action-after-each-iteration
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong vòng lặp for-each, cú pháp đúng là:
foreach (type var: collection) { statement(s); }
for (collection: type var) { statement(s); }
for (type var: collection) { statement(s); }
for (var in collection) { statement(s); }
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vòng lặp do-while khác vòng lặp while ở điểm nào?
do-while kiểm tra điều kiện trước khi thực thi lệnh
do-while thực thi các lệnh ít nhất một lần rồi mới kiểm tra điều kiện
do-while không thể sử dụng break và continue
do-while chỉ dùng để lặp qua các phần tử trong mảng
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào được sử dụng để kết thúc vòng lặp hiện tại?
exit
stop
break
end
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào được sử dụng để bỏ qua phần còn lại trong vòng lặp hiện tại và chuyển đến lần lặp tiếp theo?
next
continue
skip
pass
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
break trong vòng lặp, điều gì sẽ xảy ra?
Chỉ bỏ qua lần lặp hiện tại
Kết thúc toàn bộ vòng lặp và chuyển đến lệnh sau vòng lặp
Bỏ qua lần lặp hiện tại và chuyển đến lần lặp tiếp theo
Kết thúc chương trình
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
11 questions
Name That Movie!
Quiz
•
9th - 10th Grade
10 questions
Movies
Quiz
•
1st Grade
10 questions
kiểm tra l8
Quiz
•
8th Grade
13 questions
Movies
Quiz
•
5th Grade
10 questions
D.K.A.B 11. Sınıf 1. Ünite
Quiz
•
11th Grade - University
12 questions
K-POP
Quiz
•
5th Grade
12 questions
Gaming quiz
Quiz
•
9th Grade
16 questions
FONKSİYON(function)
Quiz
•
1st - 8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Fun
20 questions
Cartoon Characters
Quiz
•
12th Grade
53 questions
Trivia
Quiz
•
6th - 8th Grade
11 questions
Guess the movie with Emojis
Quiz
•
2nd - 12th Grade
20 questions
Guess The Cartoon!
Quiz
•
7th Grade
20 questions
Disney
Quiz
•
KG - 3rd Grade
16 questions
Logos
Quiz
•
7th Grade
20 questions
Would You Rather
Quiz
•
5th Grade
16 questions
Kansas Day!!!
Quiz
•
4th - 6th Grade