
Tin 2
Quiz
•
Others
•
University
•
Practice Problem
•
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
Already have an account?
Similar Resources on Wayground
49 questions
Фармхимия 401-449
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
CORTO NUMERO 1, HISTORIA DE LA MICROBIOLOGIA.
Quiz
•
University
50 questions
GROUP 5
Quiz
•
University
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Others
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
34 questions
Unit 5 Review - The Middle Ages in Europe-B
Quiz
•
9th Grade - University
26 questions
Day2 classwork: Permutation and combination
Quiz
•
2nd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
