Hàm 2

Hàm 2

6th Grade

30 Qs

quiz-placeholder

Similar activities

Python lesson 3 (Tkinter)

Python lesson 3 (Tkinter)

6th - 12th Grade

25 Qs

cisco

cisco

6th - 8th Grade

25 Qs

Icon challenge

Icon challenge

4th - 9th Grade

26 Qs

Chủ đề: Ms powerpoint

Chủ đề: Ms powerpoint

2nd Grade - Professional Development

25 Qs

tin 7gk

tin 7gk

6th Grade

25 Qs

Ôn tập môn tin học lớp 5 học kì 2

Ôn tập môn tin học lớp 5 học kì 2

5th Grade - University

26 Qs

Jaringan Dasar

Jaringan Dasar

1st - 12th Grade

25 Qs

Chapter 2 assessment Computer Science

Chapter 2 assessment Computer Science

6th - 9th Grade

25 Qs

Hàm 2

Hàm 2

Assessment

Quiz

Computers

6th Grade

Practice Problem

Hard

Created by

Edu TSmart

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào sau đây thêm phần tử vào map m?

m.insert({3, "Hello"});

m.push(3, "Hello");

m.add(3, "Hello");

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu nào là cách thêm giá trị "A" vào key "name" trong map m?

m["name"] = "A";

m.at("name") = "A";

m.insert("name", "A");

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Khi thêm phần tử bằng insert(), nếu key đã tồn tại thì điều gì xảy ra?

Ghi đè giá trị cũ

Không thay đổi map

Xóa key đó

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

m[10] = 100; trong map m; có tác dụng gì?

Cập nhật key 10 với giá trị 100

Xóa key 10

Không hợp lệ

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu nào sau đây là thêm đúng vào unordered_map u?

u["A"] = 10;

u.insert(10, "A");

u.push_back("A", 10);

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh nào đúng để tăng giá trị của key 7 thêm 1 trong map m?

m[7] += 1;

m[7] = m[7] + 1;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để cập nhật m["x"] = "y" trong map m, cần điều kiện gì?

Key "x" đã có trước

Không cần điều kiện, sẽ tự động tạo nếu chưa có

Key "x" không tồn tại mới cập nhật

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?

Discover more resources for Computers