
Tin11
Quiz
•
Education
•
11th Grade
•
Easy
Thanh Bui
Used 94+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
Cấu trúc lặp với số lần biết trước trong C++ có dạng:
for([khởi tạo]; [điều kiện lặp]; [bước nhảy]) [lệnh];
for([khởi tạo]; [điều kiện lặp]) [lệnh];
for([khởi tạo]; [điều kiện lặp]; [bước nhảy])
for([điều kiện lặp]; [bước nhảy]) [lệnh];
2.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
Câu 2. Cấu trúc lặp với số lần chưa biết trước trong C++ có dạng:
A. while (< điều kiện lặp>) :< câu lệnh>;
B. while < câu lệnh>;
C. while (< điều kiện lặp>) < câu lệnh>;
D. while (< điều kiện lặp>)
3.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
Câu 3. Cho đoạn lệnh sau:
for (int i = 1; i <= 5; i++) cout<< i;
Trên màn hình có các giá trị là:
A. 0 1 2 3 4 5
B. 1 2 3 4 5
C. 0 1 2 3 4
D. 1 2 3 4
4.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
Câu 4. Cho đoạn lệnh sau:
for (int i = 5; i >=0; i--) cout<< i<<” “;
Trên màn hình có các giá trị là:
A. 0 1 2 3 4 5
B. 5 4 3 2 1
C. 1 2 3 4 5
D. 5 4 3 2 1 0
5.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
Câu 5. Cho đoạn lệnh sau:
i=1;
n=5;
while (i<=n)
{i=i+1; cout<< i;}
Trên màn hình có các giá trị là:
A. 2 3 4 5 6
B. 5 4 3 2 1
C. 1 2 3 4 5
D. 23456
6.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
Câu 6. Cho đoạn chương trình sau:
cin >> a;
n = 0;
double s = 1.0/a; // Buoc 1
while(!(1.0/(a+n) < 0.0001))
{
n++;
s += 1.0/(a+n);
}
Trong đoạn chương trình trên vòng lặp thực hiện lặp bao nhiêu lần?
A. a lần
B. 10 lần
C. n lần
D. Không biết trước
7.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
Câu 7. Cho đoạn chương trình sau:
s=0
for ( i =1;i<=5;i++) s=s+i;
Sau khi thực hiện đoạn chương trình trên giá trị của s là:
A. 1
B. 15
C. 6
D. 21
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
32 questions
gk2ti11(1)
Quiz
•
9th - 12th Grade
25 questions
Unit 5 Review Practice
Quiz
•
6th Grade - University
28 questions
Cryptology
Quiz
•
11th - 12th Grade
25 questions
Holes quiz by luis sachar
Quiz
•
3rd Grade - Professio...
25 questions
Round up 4
Quiz
•
10th - 12th Grade
30 questions
Pronoms Febles (CD, CI)
Quiz
•
10th - 12th Grade
31 questions
Semester 1 Year 10 DigiTech Revision
Quiz
•
10th - 11th Grade
30 questions
Day 11 MCQs
Quiz
•
11th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade