
Hàm 2
Authored by Edu TSmart
Computers
6th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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.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
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
27 questions
BÀI 16. CÁC CẤU TRÚC ĐIỀU KHIỂN
Quiz
•
6th Grade - University
26 questions
ĐỀ CƯƠNG ÔN TẬP CUỐI HỌC KÌ II
Quiz
•
6th Grade
31 questions
Year 7 Computer Science Baseline
Quiz
•
KG - Professional Dev...
26 questions
IQ test
Quiz
•
1st Grade - University
26 questions
ÔN TẬP KIỂM TRA GIỮA HKII - TIN HỌC 6 - CÁNH DIỀU
Quiz
•
6th Grade
25 questions
Ôn tập học kỳ 1 môn Tin học lớp 5
Quiz
•
5th Grade - University
26 questions
Business Letter
Quiz
•
6th Grade
26 questions
Keyboard Shortcuts List 1
Quiz
•
6th - 8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade