Programming in Microsoft C# - Exam 70-483

Programming in Microsoft C# - Exam 70-483

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

Which access modifier is the type or member that can be accessed only by code in the same class or struct?

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

7 years ago

Date created

Mar 1, 2020

Cards (38)

Section 1

(38 cards)

Which access modifier is the type or member that can be accessed only by code in the same class or struct?

Front

Private

Back

What is Explicit conversion called

Front

A Cast

Back

Where is the only place that 'Garbage Collection' work.

Front

Managed memory objects. (C# types)

Back

What does the Await keyword to?

Front

The Await keyword tells the compiler that the Async method can't continue past that point until the awaited asynchronous process is complete.

Back

What is the function of the Finalizer?

Front

It runs code right before the object is disposed on the heap.

Back

What memory management process is an automatic that takes care of memory management in most situations?

Front

Garbage Collection

Back

Which access modifier is the type or member that can be accessed by any code in the same assembly, but not from another assembly?

Front

Internal

Back

In a 'struct', can private variables be initiated with a value without using a constructor?

Front

No, only by use of constructor. public int x; (yes) public int x = 5 (no)

Back

What type of conversions happen automatically because there is no risk of data loss.

Front

Implicit conversion

Back

Which access modifier is the type or member can be accessed by any other code in the same assembly or another assembly that references it?

Front

Public

Back

With Structs can you declare a default constructor with no parameters?

Front

No

Back

Which access modifier is the type that can be accessed only by code in the same class or struct, or in a class that is derived from that class?

Front

Protected

Back

What type of conversion is made if there is a risk of losing information (larger to smaller data type)

Front

Explicit conversion.

Back

What constructor type is used to initialize any static data? Also what constructor type is called only once before the first instance of the class is created or any static members are referenced?

Front

Static Constructor

Back

What is an Indexer?

Front

It provides the ability to access a type using an index similar to an array.

Back

What is the difference between synchronous and asynchronous processing?

Front

Synchronous processing step by step, Asynchronous is in parallel with overlap.

Back

Are objects that have finalizers deleted the first time automatic 'Garbage Collections' occurs?

Front

No, the first time GC occurs it runs the finalizer code. The second time GC occurs, it deletes the object from memory.

Back

Which access modifier is the type or member can be accessed by any code in the assembly in which it is declared. Or from within a derived class in another assembly

Front

Protected internal

Back

How do you recognize a finalizer?

Front

A finalizer is a method whose name begins with a ~

Back

What is memory that is never reclaimed?

Front

A memory leak

Back

Are ThreadPools always 'background threads'?

Front

Yes, ThreadPools are always background threads.

Back

What does the keyword Async do?

Front

Async is used to mark a method to inform the compiler to look for the Await keyword

Back

Can Structs inherit from another struct or class?

Front

No

Back

What are the two ways to implement Disposal?

Front

Calling the Dispose() method and the 'using' statement

Back

How does the 'using' statement work?

Front

The 'using' statement automatically calls Dispose on objects that implement IDisposable

Back

What constructor prevents other classes from creating instances of this class besides nested classes that can create an instance of this class?

Front

Private Constructor

Back

What are the two ways C# deals with memory management?

Front

'Garbage Collection' and Disposal

Back

What are the three main types of constructors?

Front

Instance, Private and Static

Back

Can you set the name of a pooled thread

Front

No

Back

Can Structs be instantiated without the 'new' keyword?

Front

Yes

Back

What constructor type is used to create and initialize any instance member variables when you use the new expression to create an object of a class?

Front

Instance Constructor

Back

Are Structs value types or reference types?

Front

Value types

Back

What memory management process require explicit code to release resources faster?

Front

Disposal

Back

How can you force 'Garbage Collection to occur?

Front

Call GC.Collect();

Back

With Structs can you declare a default constructor with at least one parameter?

Front

Yes

Back

If you instantiate a 'Struct', does all fields have to be initialized before the object can be used?

Front

Yes

Back

What is a "Finalizer"?

Front

A finalizer is the opposite of a constructor

Back

Are all orphaned objects reclaimed during every collection

Front

No

Back