請問下列何者為C++的陣列?

一維陣列

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
林達陞 林達陞
Used 19+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int a;
int a10;
int a[10];
int a-10;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
這裡有一個陣列,
a[5]={😀,😁,😘,🤣,😎};
請問,如果cout<<a[3],我會看到何者?
😀
🤣
🙄
😘
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下方是一個一維陣列,
int a[10]={🍕,🍔,🍟,🌭,🍖,🥩,🍜,🍙,🍦,🍮};
請問:如果我希望能輸出這筆資料「🍖」,
程式碼cout後面的指令,為下列何者?
cout<< ;
a[5]
a[4]
a-5
a5
a4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a[5]={1,2,3,4,5};
cout<<a[4];
會輸出何種結果?
2
3
4
5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下方是一個陣列,
a[10]={1,2,3,4,5,6,7,8,9,10};
請問,cout<<a,會輸出哪種結果?
1,2,3,4,5,6,7,8,9,10
0
0x6ffe00
10
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
以下是一個陣列a,
int a[5]={40,30,50,60};
如果我們想要看到陣列裡的每個值,
我們可以用下列哪個指令處理。
cout<<a[5];
cout<<a;
for(int i=0;i<5;i++)
{
cout<<a[i];
}
while(i>0)
{
cout<<a[i];
}
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
請問下列程式碼的結果為何?
int a[5]={0};
for(int i=0;i<5;i++)
{
cout<<a[i]<<" ";
}
0
0000
0,0,0,0,0,
0 0 0 0 0
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
С++ цикл for

Quiz
•
6th - 9th Grade
12 questions
Массивы C++

Quiz
•
10th - 11th Grade
11 questions
Caligrafía | CM7

Quiz
•
1st - 10th Grade
7 questions
While Loops

Quiz
•
10th - 12th Grade
12 questions
Python_基礎觀念

Quiz
•
9th Grade
10 questions
Bài tập trắc nghiệm C++

Quiz
•
3rd - 12th Grade
10 questions
C++ Programming Quiz

Quiz
•
12th Grade
10 questions
Test if si for

Quiz
•
10th 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
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

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

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade