Ôn tập bài tập code C# chương 6,7,8,9

Ôn tập bài tập code C# chương 6,7,8,9

University

35 Qs

quiz-placeholder

Similar activities

Cybersecurity I: Unit 1  - Foundations & Threats Exam Review

Cybersecurity I: Unit 1 - Foundations & Threats Exam Review

9th Grade - University

37 Qs

Kuis Algoritma dan Pemrograman

Kuis Algoritma dan Pemrograman

University

37 Qs

LATIHAN PERSIAPAN AM INFORMATIKA

LATIHAN PERSIAPAN AM INFORMATIKA

9th Grade - University

40 Qs

Câu hỏi trắc nghiệm luyện tập vận dụng

Câu hỏi trắc nghiệm luyện tập vận dụng

3rd Grade - University

30 Qs

Câu hỏi trắc nghiệm về Microsoft Excel_NH

Câu hỏi trắc nghiệm về Microsoft Excel_NH

University

40 Qs

QUIZ

QUIZ

University

30 Qs

Y9 Python Review

Y9 Python Review

9th Grade - University

30 Qs

C-Volution (Easy 1)

C-Volution (Easy 1)

University

30 Qs

Ôn tập bài tập code C# chương 6,7,8,9

Ôn tập bài tập code C# chương 6,7,8,9

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

Hoàng Phúc Hậu

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...

35 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Câu 6: Output của code là gì? `List<string> tasks = new List<string>(); tasks.Add("Plan Campaign"); tasks.Add("Write Content"); Console.WriteLine(tasks.Count);`
A. 0
B. 1
C. 2
D. Plan Campaign

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Câu 7: Đoạn code này in ra gì? `List<int> scores = new List<int> { 8, 5, 9 }; scores.Add(7); Console.WriteLine(scores[3]);`
A. 5
B. 9
C. 7
D. Lỗi IndexOutOfRangeException

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Câu 8: Giá trị của `firstItem` là gì? `var items = new List<string> { "Laptop", "Mouse", "Keyboard" }; string firstItem = items[0];`
A. Mouse
B. Keyboard
C. Laptop
D. Lỗi biên dịch

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Câu 9: Code sau làm gì? `int[] arr1 = {1, 2}; int[] arr2 = arr1; arr2[0] = 99; Console.WriteLine(arr1[0]);`
A. In ra 1
B. In ra 2
C. In ra 99
D. Gây lỗi

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Câu 10: Kết quả? `List<double> data = new List<double>(); data.Add(1.1); data.Add(2.2); data.RemoveAt(0); Console.WriteLine(data[0]);`
A. 1.1
B. 2.2
C. Lỗi IndexOutOfRangeException
D. 0.0

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Câu 1: Output của đoạn code sau là gì? `int[,] matrix = { {1, 2}, {3, 4} }; Console.WriteLine(matrix[0, 1]);`
A. 1
B. 2
C. 3
D. 4

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Câu 2: Lệnh nào khai báo đúng một mảng 2 chiều chữ nhật 3x2 chứa chuỗi?
A. `string[][] names = new string[3][2];`
B. `string[] names = new string[3, 2];`
C. `string[,] names = new string[3, 2];`
D. `string[,] names = new string[2, 3];`

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?