1. Core Programming Concepts GMETRIX

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/40

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

41 Terms

1
New cards

Garbage Collections

The GC.Collect method invokes garbage collection.

Garbage collection is used to free up memory when it no longer needs to be allocated to a resource.

The garbage collector usually runs continuously.

2
New cards

RAM

What is used within a computer to store temporary instructions

3
New cards

Memory

Memory stacks use a last-in, first-out (LIFO) data structure.

Memory allocation in memory stacks is static.

Memory heaps are used classes, interfaces, delegates, objects, and strings

4
New cards

Memory Pt.2

For memory heaps, data can be stored and removed in any order.

Memory allocation is dynamic in nature.

Memory stacks use a LIFO (Last in First Out) data structure

5
New cards

Data Types

The char data type uses 1 byte of memory.

The integer data type uses 4 bytes of memory.

The string data type uses a 4 byte address but can have a length of up to 2 billion bytes

6
New cards

If

A decision structure, which is used in all programming languages, checks for truth on a condition and takes action if it is true or not

7
New cards

Do. while loop

Runs a loop of code at least once and then until a condition is true or false

8
New cards

While Loop

Runs a loop of code while a condition is true or false but does not always run at least once

9
New cards

Diamond

Indicates a decision point within an app's logic

10
New cards

Oval

Signifies a start or end point for an app

11
New cards

Parallelogram

Signifies an input or output oppurtunity

12
New cards

Rectangle

Represents a process

13
New cards

Eval Expression

Typically used for an eval mathematical problem inside a string, such as for this function in Python

Adds the values

EX. eval("sum([4,6,9])") = 19.

14
New cards

Decision Table

An afromented table, that is used to specify conditions and actions to take on those conditions for when it is time to develop a portion of an application that requires conditional logic

15
New cards

Relational table

A database table that contains data other tables use as lookups for info

16
New cards

at Test.DataTable.AddRecord (System.String newRecord):0

at Test DataTable.Overflow.Main():20

Both exceptions are in the Test namespace.

The first statement indicates a problem with the AddRecord method inside the DataTable class.

The Main method has an error problem starting at Line 20

17
New cards

try-catch-finally-block

18
New cards

try-finally block

19
New cards

try-catch block

20
New cards

throw block

21
New cards

Defensive Coding

Coding in which considerations are made for unexpected situations and to where assumptions are eliminated in code

22
New cards

Offensive Coding

23
New cards

Passive Coding

24
New cards

Safe Coding

25
New cards

Try Block

A block that a try-catch-finally loop should include in the code that may throw an exception

All code that has the potential of throwing an error

26
New cards

Finally Block

Runs regardless whether a try block worked or a catch block was needed

27
New cards

Catch Block

When an error is thrown, instead of the program crashing, this block is run

28
New cards

Unit Test

Uses the Assert.Fail() method to fail a test that is incomplete or not implemented

29
New cards

Default Block

30
New cards

Functional Test

31
New cards

Logical Test

32
New cards

Debug Test

33
New cards

throw

A keyword that throws an exception and gives one an oppurtunity to display an exception message

34
New cards

InvalidOperationException

Is used when an excpetion is operational, not invalid or functional

35
New cards

IllegalOperationException

36
New cards

SystemException

37
New cards

ArgumentOutOfRangeException

38
New cards

1.4 Code

XHR (XML HttpRequest) is part of AJAX (Asynchronous JavaScript and XML).

The status of 200 indicates a request has succeeded.

A ready state of 4 indicates that a request for data is finished

39
New cards

Use asynchronous calls to invoke the web service

Return immediately and then use some other mechanism for indicating when the call actually completes. This allows web services to take the time they need to process the request without the user interface appearing to be frozen

40
New cards

Delegates

Events represent user actions, such as mouse clicks.

Delegate types are declared and then created.

An event resides in a delegate

41
New cards

Promise keyword

Used to create callbacks for both successful and failed tests in an asynchronous coding environment