
Tin 2
Quiz
•
Others
•
University
•
Medium
Đoàn Hoàng
Used 1+ times
FREE Resource
Enhance your content in a minute
52 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào sau đây là đúng?
if (x > 0) { y = 10; } else if (x < 0) { y = -10; }
if (x > 0); y = 10; else if (x < 0) y = -10;
if (x > 0) { y = 10 } else if (x < 0) y = -10;
if (x > 0) { y = 10; else if (x < 0) { y = -10; } }
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào sau đây là đúng?
switch (x): { case 1: if (y > 0) z = 10; break; }
switch (x) case 1: if (y > 0) { z = 10; } break;
switch (x) { case 1: if (y > 0) { z = 10; } break; }
switch (x) { case 1: if y > 0 { z = 10; } break; }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào sau đây là đúng với x=2 thì y=30?
switch (x) { case 1: y = 10; case 2: y = 20; break; case 3: y = 30; }
switch (x) { case 1: y = 10; case 2: y = 20; case 3; y = 30; break; }
switch (x) { case 1: y = 10; case 2: y = 20; case 3: y = 30; }
switch (x) { case 1: y = 10; break; case 2: y = 20; break; case 3: y = 30; }
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào gán y=10 khi x bằng 5 là đúng?
if x == 5 { y = 10; }
if (x == 5) { y = 10; }
if (x > 5) { y = 10; }
if (x != 5) y = 10;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào gán y = 0 khi x = 3?
switch (x) { case 1: y = 10; case 2: case 3: y=0; default: y = 30; }
switch (x) {case 1: case 2: case 3: y = 20; break; default: y = 0;}
switch (x) { case 1: case 2: y = 20; case 3: y=30; break; default: y = 0; }
switch (x) { case 1: y = 10; break; case 2: case 3: y=30; default: y = 0; }
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh if.. else sử dụng toán tử "hoặc logic" nào sau đây là đúng?
if (x > 0 || y > 0) { z = 10; } else { z = -10; }
if (x > 0 OR y > 0) z = 10 ; else z = -10;
if (x > 0) || (y > 0) { z = 10; } else { z = -10; }
if x > 0 || y > 0 { z = 10; } else z = -10;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào sau đây là đúng?
if x > 0 && y < 0 { z = 10; } else z = -10;
if (x > 0 && y < 0) z = 10 else z = -10
if (x > 0) && (y < 0) { z = 10; } else { z = -10; }
if (x > 0 && y < 0) { z = 10; } else { z = -10; }
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
50 questions
CORTO NUMERO 1, HISTORIA DE LA MICROBIOLOGIA.
Quiz
•
University
50 questions
GROUP 5
Quiz
•
University
50 questions
English Language Quiz
Quiz
•
University
54 questions
English Language Quiz
Quiz
•
University
50 questions
ULANGAN BAHASA INDONESIA KELAS 5 SEMESTER GANJIL
Quiz
•
5th Grade - University
47 questions
lịch sử 12
Quiz
•
University
50 questions
CICT Quiz Bee: Battle of the Brains
Quiz
•
University
50 questions
đề 1 tiếng anh task 1
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Others
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
