Đề 1

Đề 1

12th Grade

94 Qs

quiz-placeholder

Similar activities

Bài 3. Mạch điện xoay chiều ba pha

Bài 3. Mạch điện xoay chiều ba pha

12th Grade

90 Qs

Soal Tes Olympicad Informatika 2026

Soal Tes Olympicad Informatika 2026

12th Grade

93 Qs

Bài 1: Thành phần nguyên tử

Bài 1: Thành phần nguyên tử

12th Grade

99 Qs

Untitled Quiz

Untitled Quiz

12th Grade

91 Qs

AP Bio Term 1 Review pt 5 Macromolecules, DNA and Signalling

AP Bio Term 1 Review pt 5 Macromolecules, DNA and Signalling

12th Grade

94 Qs

Country Music Songs and Artists Quiz

Country Music Songs and Artists Quiz

8th Grade - University

89 Qs

tn dia 12 ck

tn dia 12 ck

9th Grade - University

95 Qs

TRẮC NGHIỆM BÀI 1, TRẮC NGHIỆM BÀI 2

TRẮC NGHIỆM BÀI 1, TRẮC NGHIỆM BÀI 2

12th Grade

94 Qs

Đề 1

Đề 1

Assessment

Quiz

Science

12th Grade

Practice Problem

Hard

Created by

Ân Thiên

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?