Hàm 2
Quiz
•
Computers
•
6th Grade
•
Practice Problem
•
Hard
Edu TSmart
Used 6+ times
FREE Resource
Enhance your content in a minute
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
Create a free account and access millions of resources
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
Level2_Chủ đề 1, Test 1
Quiz
•
6th - 8th Grade
25 questions
ICT Web Design Review 23
Quiz
•
6th - 8th Grade
25 questions
Bài 1: Hệ điều hành
Quiz
•
6th Grade
35 questions
Ôn Tập Học Kì I Lớp 4
Quiz
•
4th Grade - University
30 questions
Ôn tập GK2 Tin6
Quiz
•
6th Grade
30 questions
logo quiz p6
Quiz
•
6th Grade
25 questions
Google Docs
Quiz
•
6th - 8th Grade
25 questions
Intro to Microsoft Access
Quiz
•
6th - 8th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
