
一維陣列
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
林達陞 林達陞
Used 20+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
請問下列何者為C++的陣列?
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
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
10 questions
Diagramas de Flujo
Quiz
•
7th - 10th Grade
12 questions
Web II: CSS Positioning
Quiz
•
9th - 12th Grade
10 questions
CHƯƠNG TRÌNH CON BT1
Quiz
•
10th - 12th Grade
12 questions
Tabele HTML
Quiz
•
9th Grade
12 questions
BAI 25_TINHOC
Quiz
•
10th Grade
15 questions
Access 2013 - 4(consultas)
Quiz
•
10th Grade
10 questions
Bài 10 - Cấu trúc rẽ nhánh
Quiz
•
5th Grade - University
15 questions
Ôn tập KTGK. Bài 17. Biến và lệnh gán
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
