
lập trình C4
Authored by Liên thi
Computers
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
51 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Giá trị của a, b sau chương trình: int a, b, i; for(i=0; i<10; i++){ if(i%2==0) a= a+2i; else b=b+i; }
a=40; b=26
a=30; b=19
a = 40; b=19
a=30; b=26
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Giá trị của x, y sau chương trình: int x = 0, y = 0, i = 1; while (i <= 10) { if (i % 3 == 0) x += i; else if (i % 2 == 0) y += i; i++; }
x = 18, y = 20
x = 15, y = 24
x = 18, y = 24
x = 21, y = 22
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Giá trị của a và b sau chương trình? int a = 5, b = 10, i; for (i = 0; i < 10; i++) { if (i < 3) a += i; else if (i == 3) b -= i; else a += b;
a = 50, b = 7
a = 45, b = 7
a = 48, b = 10
a = 42, b = 7
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Giá trị của x, y, và z sau chương trình? int x = 2, y = 1, z = 0, i; for (i = 1; i <= 10; i++) { if (i % 2 == 0) x += i; else if (i % 3 == 0) y = i; else z -= i; }
x = 32, y = 27, z = -12
x = 32, y = 27, z = -13
x = 30, y = 27, z = -13
x = 32, y = 30, z = -13
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Kết quả của đoạn mã sau là gì? int a = 10; a += (a % 3 == 0) ? 5 : -3; printf("%d", a);
7
10
12
15
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Kết quả của biểu thức sau là bao nhiêu? int a = 7, b = 3, c = 2; int result = (a + b c) % c - a / b;
-1
0
1
2
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Kết quả của đoạn mã sau là bao nhiêu? int x = 3, y = 7, z = 2; int result = (x + y z) / (z + x % y);
5
6
3
8
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
50 questions
PF201: SCCPF2012223
Quiz
•
University
55 questions
3 курс Cybersecurity Compliance Framework & System Administratio
Quiz
•
University
50 questions
Midterm Examination-Advacomt (I-AINS) Asuncion
Quiz
•
University
56 questions
PH INFOR KELAS X
Quiz
•
2nd Grade - University
50 questions
Quiz Algoritma dan Logika
Quiz
•
7th Grade - University
50 questions
AKT test (1-50) Жаңа вариант
Quiz
•
University
50 questions
Ôn tập mos 11
Quiz
•
University
50 questions
Software engineering MCQ Test 1
Quiz
•
University
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
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University