c# 命名空间命名规范_C#命名空间能力问题和解答 套装2
c# 命名空間命名規(guī)范
1) Can we create a nested namespace in C#.NET?Yes
No
Correct answer: 1
Yes
Yes, we can create a nested namespace in C#.NET.
1)我們可以在C#.NET中創(chuàng)建嵌套的名稱空間嗎?是
沒有
正確答案:1
是
是的,我們可以在C#.NET中創(chuàng)建一個(gè)嵌套的名稱空間。
2) A namespace can contain an interface in C#.NET?Yes
No
Correct answer: 1
Yes
Yes, a namespace can contain an interface.
2)命名空間可以包含C#.NET中的接口嗎?是
沒有
正確答案:1
是
是的,名稱空間可以包含一個(gè)接口。
3) There are following statements are given below, which of them are correct about namespace in C#.NET?We cannot create a nested namespace.
In C#.Net, there is no limit for nested levels for a namespace.
We can create nested namespaces up to 4 levels only.
To create nested namespace we need to use “using” keyword.
Options:
Only A
D and C
Only B
Only D
Correct answer: 3
Only B
The only statement B is correct about namespace in C#.NET.
3)下面給出了以下語句,其中哪些對(duì)于C#.NET中的名稱空間是正確的?我們無法創(chuàng)建嵌套的名稱空間。
在C#.Net中,名稱空間的嵌套級(jí)別沒有限制。
我們最多只能創(chuàng)建4個(gè)嵌套的名稱空間。
要?jiǎng)?chuàng)建嵌套的名稱空間,我們需要使用“ using”關(guān)鍵字。
選項(xiàng):
只有一個(gè)
D和C
只有B
只有D
正確答案:3
只有B
唯一的語句B關(guān)于C#.NET中的名稱空間是正確的。
4) There are following statements are given below, which of them are correct about namespace in C#.NET?In C#.NET, every class belongs to a namespace.
A namespace can contain either a class or a structure.
All members of the namespace must be in the same file.
By default name of the namespace is the project name.
Options:
A and D
Only B
Only C
B and C
Correct answer: 1
A and D
The statements A and D are correct about namespaces.
4)下面給出了以下語句,其中哪些對(duì)于C#.NET中的名稱空間是正確的?在C#.NET中,每個(gè)類都屬于一個(gè)命名空間。
命名空間可以包含類或結(jié)構(gòu)。
命名空間的所有成員必須在同一文件中。
默認(rèn)情況下,名稱空間的名稱是項(xiàng)目名稱。
選項(xiàng):
A和D
只有B
只有C
B和C
正確答案:1
A和D
語句A和D關(guān)于名稱空間是正確的。
5) There are following namespaces are given below, which of them are not valid namespace of .NET Framework Class Library?Data
Process
Web
Drawing2D
Options:
Only A
B and D
Only C
A and C
Correct answer: 2
B and D
In the above options, B and D are not valid namespaces of FCL.
5)下面給出了以下命名空間,其中哪些不是.NET Framework類庫的有效命名空間?數(shù)據(jù)
處理
網(wǎng)頁
Drawing2D
選項(xiàng):
只有一個(gè)
B和D
只有C
A和C
正確答案:2
B和D
在以上選項(xiàng)中,B和D不是FCL的有效名稱空間。
? C# Namespace Aptitude | Set 1 C# Namespace Aptitude | Set 3 ? #C#命名空間能力| 設(shè)置1 C#命名空間能力| 設(shè)置3?翻譯自: https://www.includehelp.com/dot-net/csharp-namespace-aptitude-questions-and-answers-2.aspx
c# 命名空間命名規(guī)范
總結(jié)
以上是生活随笔為你收集整理的c# 命名空间命名规范_C#命名空间能力问题和解答 套装2的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ntp symmetric_Python
- 下一篇: 【万字长文】Spring Cloud A