Tải bản đầy đủ (.docx) (4 trang)

Hướng dẫn lập trình môn C

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (43.92 KB, 4 trang )

The class that defines the Main() method is termed the_____________.

1

application
object
system object
static object
sensitive object

Field data of a class should seldom be defined as public. To preserve the integrity of your state data, it is a far better desig

2
True
Fals
e
Which of the following are the new features of C# 7.1?
1. Async Main
2. Default Expressions
3. Infer tuple names
4. Pattern-matching with generics
1, 2, 3

3

2, 3, 4
1, 2, 4
1, 2, 3,
4
Which of the following statement related to Assemblies are correct?


When you compile an application, the CIL code is stored in an assembly.
4
Assemblies include both executable application files and libraries.
Assemblies also include meta information and optional resources.
All of the above.
5

Which of the following statement related to CIL and JIT are correct?

The just-in-time part of the name reflects the fact that CIL code is compiled only when it is needed.
Your code gets compiled into Just In Time (JIT) code.

Several JIT compilers exist, each targeting a different architecture, and the CLR/ CoreCLR uses the appropriate one to c


All of the above.
Which of the following statement related to Managed Code are correct?

The role of the CLR/CoreCLR doesn’t end after you have compiled your code to CIL and a JIT compiler has compiled th
6
Code written using the .NET Framework and .NET Core are managed when it is executed.

CLR/ CoreCLR looks after your applications by managing memory, handling security, allowing cross language debuggin
All of the above
Which of the following statement related to Garbage Collection are correct?

This method makes sure that the memory used by an application is freed up completely the application is no longer in
7

NET garbage collection works by periodically inspecting the memory of your computer and removing anything from it


Using Garbage collection, you can separate logically related code into an individual file so that it can be worked on ind
All of the above.

Linking makes it easy to locate specific pieces of code when you need them and enables teams of developers to divide th
otherwise satisfactory sections or sections other people are working on.

8
True
Fals
e
Which of the following application can be developed using C#?
Desktop applications
Windows Store applications
Cloud/Web applications
Web APIs
1, 2, 3

9

2, 3, 4
1, 2, 4
1, 2, 3,
4
10

Which of the following is not a Visual Studio 2017 product?

Visual Studio Code



Visual Studio Community
Visual Studio Professional
None of the above

________provides a unified class library which can be targeted from multiple .NET platforms like the .NET Framework, .N

.NET Standard
11
NET Core applications
NET Framework applications
.NET Core fundamentals

Applications written using the ________________are first compiled into CIL. When an application is executed, the CLR us

.NET Core fundamentals
12
.NET Framework
.NET Standard
NET Core applications
.NET Core applications work similar to .NET Framework applications; however, instead of using the CoreCLR it uses CLR.

13
True
Fals
e
The distinctive features of C# from an object-oriented perspective are which of the following?

Unified type system
14

Classes and interfaces
Properties, methods, and events
All of the above.
15

Which of the following statement related to C# are correct?

C# is primarily a type-safe language, meaning that instances of types can interact only through protocols they define
C# prevents you from interacting with a string type as though it were an integer type.


C# supports static typing, meaning that the language enforces type safety at compile time.
All of the above.



Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Tải bản đầy đủ ngay
×