求助几道简单的C++题目,谢谢!
Ifyoudeclareanarraydoublelist[]={3.4,2.0,3.5,5.5},thehighestindexinarraylistis_______...
If you declare an array double list[] = {3.4, 2.0,3.5, 5.5}, the highest index in array list is __________.
Select one:
a. 1
b. 4
c. 3
d. 0
e. 2
Are the following two declarations the same?
char city[8] = "Dallas";
char city[] = "Dallas";
Select one:
a. no
b. yes
When you pass an array to a function, __________ ispassed to the array parameter in the function.
Select one:
a. thestarting address of the array
b. a copy of thefirst element
c. the length of thearray
d. a copy of thearray
Which of the following statements are true?(多选)
Select one or more:
a.Encapsulating data fields makes the program short.
b.If you don't use the public keyword, the visibility is private by default.
c.Encapsulating data fields helps prevent programming errors.
d.Encapsulating data fields makes the program easy to maintain.
e.Use the private keyword to encapsulate data fields. 展开
Select one:
a. 1
b. 4
c. 3
d. 0
e. 2
Are the following two declarations the same?
char city[8] = "Dallas";
char city[] = "Dallas";
Select one:
a. no
b. yes
When you pass an array to a function, __________ ispassed to the array parameter in the function.
Select one:
a. thestarting address of the array
b. a copy of thefirst element
c. the length of thearray
d. a copy of thearray
Which of the following statements are true?(多选)
Select one or more:
a.Encapsulating data fields makes the program short.
b.If you don't use the public keyword, the visibility is private by default.
c.Encapsulating data fields helps prevent programming errors.
d.Encapsulating data fields makes the program easy to maintain.
e.Use the private keyword to encapsulate data fields. 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询