
Tin11
Authored by Thanh Bui
Education
11th Grade
Used 94+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
30 questions
Capitalization,Spelling & Punctuation
Quiz
•
4th - 12th Grade
30 questions
Perlawanan Bangsa Indonesia Terhadap Bangsa Eropa
Quiz
•
11th Grade
25 questions
LATIHAN SOAL MARKETING GASAL
Quiz
•
1st Grade - University
25 questions
PENGAJIAN AM SEMESTER 3
Quiz
•
1st Grade - University
25 questions
PH HARDWARE 7
Quiz
•
7th Grade - University
30 questions
Soal materi Morse dan Semaphore
Quiz
•
10th - 12th Grade
25 questions
Penilaian Harian Proposal
Quiz
•
11th Grade
30 questions
IT Security Revision - Quiz 1
Quiz
•
11th 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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade