
Tin 2
Authored by Đoàn Hoàng
Others
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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; }
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
Advanced Statistics
Quiz
•
University
50 questions
TTQT 1
Quiz
•
University
50 questions
Механика бойынша сұрақтар
Quiz
•
University
50 questions
Food and Daily Life Quiz
Quiz
•
University
50 questions
ЭТТ 51-100
Quiz
•
University
50 questions
англ 100-150
Quiz
•
University
50 questions
Chính trị c1-50
Quiz
•
University
49 questions
Animal and Language Quiz
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Others
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University