Midterm vocab Flashcards

1
Q

determine the accessibility of an object’s properties and methods to other methods in the app

A

access modifier

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

a method that is automatically called when an app is executed

A

Main Method

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

can be called from outside the class’s declaration’s body by methods of other classes

A

public accessor “public”

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

a methods return type, indicates that a method will not return any information to its calling method when it completes a task

A

keyword “void”

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

ex: public void DisplayMessage();

A

method header

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

ex: public static void Main(string[ ] args);

method can be called w/o first creating an object of the class

A

keyword “static”

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

are accessible to all classes in the same project

A

class types (creating new classes)

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

object creation expression

A

Gradebook mygb = new Gradebook();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
ex: Gradebook mygb = new Gradebook();
creates a new object of the class specified to the right of the keyword (ie Gradebook)
A

new operator

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

required, the parenthesis in combination with a class name represent a call to the instructor, which is similar to a method, but used only at the time an object is created to initialize the object’s data

A

Gradebook mygb = new Gradebook()

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

graphical language used by programmers to represent their object-oriented systems in a standardized matter // summarizes a class’s attributes and operations

A

UML

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

ON A URL DIAGRAM:

+DisplayMethod()

A

public visibility symbol

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

additional information needed to perform a method

A

parameter

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

ex: public void DisplayMethod();

located in the parenthesis that follow the method name.

A

parameter list

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

indicates to the compiler that the app uses classes in a particular namespace

A

using directives

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

System.Console.WriteLine(“”);

A

fully qualified class name

17
Q

variables declared in a body of a method and can only be used in that method

A

local variables

18
Q

attributes represented by variables; declared inside a class declaration but outside the bodies of the class’s methods declarations

A

instance variables (fields)

19
Q

used to manipulate an object’s attributes

A

property

20
Q

accessible only to members of the class in which they’re declared

A

public accessor “private”

21
Q

declaring instance variables with access modifier private

A

information hiding (encapsulation)

22
Q

property declaration

A

ex:
private string courseName; (instance variable)

public string CourseName
{
get
{
return courseName;
}
set
{
courseName = value;
}
}
23
Q

enables a client to read the value of an instance variable

A

get accessor

24
Q

enables a client to modify the instance variable

A

set accessor

25
Q

can be read or written by any property or method in the program

A

public instance variable

26
Q

the client-code can access the instance variable ONLY indirectly through the class’s non-private properties or methods.

A

private instance variable

27
Q

C# compiler creates a private instance variable, and the get/set accessors for returning and modifying the private instance variables

A

auto-implemented property

28
Q

allows you to insert pre-defined code termplates

A

code snippets

29
Q

simple types (int and double); contains a value of that type

A

value types

30
Q

sometimes called a reference, contains the address of a location in memory where the data referred to by that variable is stored
(refer to an object)

A

reference types

31
Q

used to initialize an object of a class when the object is created, must have same name as class

A

constructor

32
Q

type float, have seven significant digits

A

single-precision floating-point numbers

33
Q

type double, have 15-16 significant digits

A

double -precision floating-point numbers

34
Q

has 28-29 significant digits

A

decimal