
Đề 1
Quiz
•
Science
•
12th Grade
•
Practice Problem
•
Hard
Ân Thiên
Used 1+ times
FREE Resource
Enhance your content in a minute
94 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn chương trình sau: int a = 3; int b= (a < 0 ? 1 : 0); try { label1.Text = Convert.ToString (a / b); } catch { label1.Text = "0"; } Cho biết kết quả hiển thị trên label1.
0
1
3
Chương trình báo lỗi
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho biết giá trị của biến sum trong đoạn chương trình sau: int [] arrInt = { 2, 3, 6, 4, 7 }; int sum = 0; for (int i = 0; i < arrInt.Length; i++) { if (arrInt[i] % 2 != 0) break; sum += arrInt[i]; }
2
5
10
12
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho biết kết quả của đoạn chương trình sau: int index = 6;
int val = 44;
int[] a = new int[5];
try { a[index] = val ;
}
catch(IndexOutOfRangeException e)
{
Console.Write("Index out of bounds ");
}
Console.Write("Remaining program");
Giá trị 44 được gán cho phần tử a[6]
Chương trình xuất ra: Index out of bounds
Chương trình xuất ra: Remaining program
Chương trình xuất ra: Index out of bounds
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phát biểu nào sau đây là chính xác
intMyArr là một jagged array hai chiều, mỗi phần tử là một mảng
intMyArr là một jagged array ba chiều, chứa hai phần tử, mỗi phần tử là một jagged array hai chiều
intMyArr là một jagged array ba chiều, chứa hai phần tử, mỗi phần tử là một jagged array hai chiều
intMyArr là một jagged array ba chiều, chứa ba phần tử, mỗi phần tử là một jagged array hai chiều
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khai báo nào sau đây tương đương với: string file = "C:\MyFolder\MySubFolder\MyFile.txt";
string file = @"C:\MyFolder\MySubFolder\MyFile.txt";
string file = ~"C:\MyFolder\MySubFolder\MyFile.txt";
string file = !"C:\MyFolder\MySubFolder\MyFile.txt";
string file = #"C:\MyFolder\MySubFolder\MyFile.txt";
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho biết giá trị biến sum trong đoạn chương trình sau:
int []arrInt = { 2, 3, 6, 4, 7 };
int i = 0, sum =0;
do {
sum += arrInt [i];
}
while (arrInt[i] % 2 != 0 && i< arrInt.Length );
0
2
10
12
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn chương trình sau:
char ch = Convert.ToChar (68);
string s = "";
switch (ch) {
case 'A': case 'a':
s = "case A | case a";
break;
case 'B':
case 'b':
s = "case B | case b";
break;
case 'C':
case 'c':
case 'D':
case 'd':
s = "case D | case d";
break;
}
Cho biết nội dung của biến s.
case A | case a
case B | case b
case D | case d
Lỗi biên dịch
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
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Science
10 questions
Unit 2: LS.Bio.1.5-LS.Bio.2.2 Power Vocab
Quiz
•
9th - 12th Grade
32 questions
Explore Mixtures and Solutions
Quiz
•
9th - 12th Grade
15 questions
Patterns of Evolution MCQ Reading
Passage
•
9th - 12th Grade
20 questions
F25 Taxonomy Review
Quiz
•
9th - 12th Grade
5 questions
Exploring Gene and Chromosome Mutations
Interactive video
•
9th - 12th Grade
10 questions
What is photosynthesis?
Lesson
•
10th - 12th Grade
17 questions
Explore Forces and Motion
Quiz
•
9th - 12th Grade
23 questions
APES Unit 3 Test Review
Quiz
•
11th - 12th Grade
