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

Quiz
•
Computers
•
6th Grade
•
Hard
Edu TSmart
Used 2+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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["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
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["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[7] += 1;
m[7] = m[7] + 1;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để cập nhật m["x"] = "y" trong map
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
Similar Resources on Quizizz
27 questions
ĐỀ CƯƠNG ÔN TẬP HK1 - K5 (24-25)

Quiz
•
5th Grade - University
25 questions
Ôn tập Lớp 6

Quiz
•
6th Grade
25 questions
Ôn tập học kỳ 1 môn Tin học lớp 5

Quiz
•
5th Grade - University
34 questions
Tin 6 GK2 KĐ

Quiz
•
6th Grade
31 questions
Map 1

Quiz
•
6th Grade - University
25 questions
Chủ đề: Ms powerpoint

Quiz
•
2nd Grade - Professio...
25 questions
Bài Tập Outlook L6

Quiz
•
6th Grade
25 questions
ÔN TẬP GIỮA HKI TIN 6 - 2425

Quiz
•
6th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
12 questions
Dividing Fractions

Quiz
•
6th Grade
9 questions
1. Types of Energy

Quiz
•
6th Grade
20 questions
Parts of Speech

Quiz
•
3rd - 6th Grade
6 questions
Final Exam: Monster Waves

Quiz
•
6th Grade
10 questions
Final Exam Grandfather's Chopsticks

Quiz
•
6th Grade