C# Flashcards

1
Q

REFERENCE types in C#

A

automatically support being set null

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

VALUE types do

A

NOT automatically support being set to null and require an actual value, they are stored in the STACK

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The QUEUE is a

A

FIRST IN, FIRST OUT collection of elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The STACK utilizes a

A

LAST IN, FIRST OUT procedure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

To declare a variable,

A

you do not need a value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

To initialize a variable,

A

you DO need to assign it a value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

PARAMETERS

A

are optional list of keywords that give certain qualities to a method or member

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The IF statements

A

do not need an else statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

switch statements increase

A

and are more optimized for a larger number of conditions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Unary

A

Binary, and Ternary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

=

A

is not a relational operator!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

For loops have 5 parts.

A

(for keyword, initializer, conditional, increment, body)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

CCR =

A

Clear, Concise, Readable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

An Inline If statement is also called a:

A

Ternary Operator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the correct types of Arrays in C#?

A

Single-Dimensional Arrays, Multidimensional Arrays, Jagged Arrays

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the 3 Required parts of a Class?

A

Class Keyword, Name, Scope

17
Q

Why would you use an abstract class?

A

To create a partial class that serves as a template for its derived classes

18
Q

Which of the following describes Abstract Classes?

A

It is an example of dynamic polymorphism

19
Q

What is dynamic polymorphism:

A

Objects of a derived class may be treated as objects of a base class

20
Q

Which of the following describes Polymorphism

A

One thing having many forms

21
Q

When would you want to use the abstract keyword in an abstract class?

A

When you want the abstract class to define the method or accessor and give the derived class the ability to override the implementation

22
Q

When would you want to use the virtual keyword in an abstract class?

A

When you want the derived class to define the method or accessor

23
Q

Classes can implement

A

multiple interfaces

24
Q

You must use an interface if you want to simulate

A

inheritance for structs

25
Q

What are the 3 types of errors?

A

Compile Time, Runtime, and Logical

26
Q

What are the 3 parts to a variable?

A

datatype, name, value

27
Q

C# is strongly-typed /statically typed

A

strongly-typed(Once an object has a type, that type will NEVER change) & statically typed(Every object MUST have a type before the program will compile)

28
Q

What does LINQ stand for?

A

Language Integrated Query

29
Q

Select the two types of syntax used in LINQ

A

Query Syntax, & Method Syntax