
C语言Array 数组基础知识测验

Quiz
•
Computers
•
University
•
Medium
C Programming undefined
Used 2+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
声明一个长度为 5 的整型数组的正确语法是?
int array[5];
int array{5};
int[5] array;
array[5] int;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
以下哪一行代码正确初始化一个整型数组?
int array[] = {1, 2, 3};
int array[3] = {1, 2};
int array[3] = {1, 2, 3};
以上皆对
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
假设 int arr[5] = {0};,数组 arr 中的元素值为?
未定义
所有元素初始化为 0
只有 arr[0] 为 0,其他为随机值
编译错误
Compilation error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
如何访问数组中第三个元素(假设数组为 int arr[5])?
arr(3)
arr[2]
arr[3]
arr[1]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
数组索引的起始位置是?
0
1
2
-1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
给定数组 int arr[3] = {10, 20, 30};,arr[1] 的值是?
10
20
30
Undefined
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
若 int arr[5];,则 arr[5] 表示什么?
第六个元素
数组的最后一个元素
数组外的无效元素
编译错误
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
PROGRAMMING IN C AND DATA STRUCTURES - UNIT III

Quiz
•
University
20 questions
C Programming Fundamentals Assessment

Quiz
•
University
20 questions
Challenging C Programming Concepts

Quiz
•
University
20 questions
quiz 3 progdas

Quiz
•
University
25 questions
Ctrl+Solve

Quiz
•
University
20 questions
Ôn Tập Buổi TH2 - CSLT

Quiz
•
University
20 questions
EST102 : PROGRAMMING IN C TEST 1

Quiz
•
University
20 questions
mile stone 2

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University