
Câu hỏi về mảng trong C++

Quiz
•
Information Technology (IT)
•
University
•
Medium
NGUYỄN DƯƠNG
Used 8+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mảng một chiều trong C++ là gì?
Một tập hợp các phần tử có cùng kiểu dữ liệu, được lưu trữ liên tiếp trong bộ nhớ.
Một tập hợp các phần tử có kiểu dữ liệu khác nhau.
Một biến duy nhất lưu trữ nhiều giá trị.
Một cấu trúc dữ liệu động có thể thay đổi kích thước.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Làm thế nào để nhập giá trị cho mảng từ bàn phím?
Sử dụng vòng lặp for và cin.
Sử dụng hàm input(arr).
Gán trực tiếp giá trị cho mảng.
Không thể nhập giá trị từ bàn phím.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho mảng int arr[5] = {10, 20, 30, 40, 50};. Giá trị của arr[3] là bao nhiêu?
10
20
30
40
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn code sau: int arr[5] = {1, 2}; Giá trị của các phần tử trong mảng arr sau khi khởi tạo là gì?
{1, 2, 0, 0, 0}
{1, 2, 2, 2, 2}
{1, 2, 1, 2, 1}
{1, 2}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Làm thế nào để tính tổng các phần tử trong mảng?
Sử dụng vòng lặp for để duyệt qua từng phần tử và cộng dồn vào biến được khởi tạo để tính tổng.
Sử dụng hàm sum(arr).
Sử dụng toán tử + trực tiếp trên mảng.
Không thể tính tổng các phần tử trong mảng.
Similar Resources on Wayground
6 questions
Kuis Pointer 1

Quiz
•
University
10 questions
ReactJs Exercise

Quiz
•
University
10 questions
Tin 9 Bài 8. SUMIF

Quiz
•
9th Grade - University
10 questions
Kiểm tra nhanh lớp 10

Quiz
•
10th Grade - University
10 questions
Repaso Clase 5

Quiz
•
University
10 questions
Minigame

Quiz
•
University
10 questions
Kiểm tra môn Tin học

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University