MID Term exam Flashcards

1
Q

Program

A

a set of coded instructions that enables a machine to perform a desired sequence of operations

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

Coding Sequence of events

A

Analyze the problem, Develop interface, Design the logic, code the logic, test and debug, Complete documentation

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

How to control labels in C#

A

you can put commands on labels, by typing the specific label and with a ( . ) type what command you want

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

How to use picture boxes

A

you can upload a file to picture boxes, and change the import from project file which will come with the saved code, or from local importing that will only exists on your hard drive

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

Button (text/click event)

A

if you type .text it will change the text of anything, click events says every time the button is clicked the code is read

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

Text boxes

A

allows the user to type in these

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

String

A

Any number of alphabetic, numerical, and special characters. they are read differently as numbers, not for calculations

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

String continuation

A

using a string in quotes, you can add + after with another string following

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

Data types non-decimal length (smallest to largest)

A

short, int, long

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

Data types for Decimal numbers (smallest to largest)

A

float, double, decimal

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

Bool

A

Boolean, either true or false value

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

Date

A

ranges from Jan, 1 0001 to December 31st 9999

and time 0:00:00 to 23:59:59

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

Declarations (establishing variables)

A

this allows you to set an ambiguous name to a value, to organize and do specific calculations.

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

.Tostring

A

c# will not display numbers so they must be converted to strings so they can be displayed, and no longer used for calculations
in form .Tostring(“0.0”)

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

.Parse

A

for example int.parse will change string into data types used for calcualtions

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

.TryParse

A

try parse will convert strings to data types, but if this is not possible this will default to the number 0

17
Q

Debugging Breakpoints

A

this will break the running code at this particular step, indicated with a red dot and will simulate what the code ran

18
Q

Debugging Single stepping

A

using f11, you can step into and look at what the code is doing at every point, one step at a time

19
Q

IF statements

A

This will trigger a Boolean reaction, verifying what steps would happen if true or false, these are between brackets where code will instruct what to do next

20
Q

Else statements

A
Following a IF boolean statement , if the value specified is not met, else in brackets will contain what to do next
IF (example == true)
 {
}
else {
}
21
Q

how to use NOT decision

A

! (x < 10) use “ ! “ outside parenthesis to say not

22
Q

AND decision

A

(x >= 10) && (x <= 20)

use two && between two statements

23
Q

OR decision

A

(x < 10) || (y < 10)

use || between two statements

24
Q

Switch Decisions

A
using a constant variable 
switch (x) { list different cases and what steps need to be done int them with typing break; at the end to show that the condition is finished 
switch (x) {
case 1:
points = points + 1;
break:
25
Q

Loops: While

A

this loop will continue until a certain condition is met and this condition follows “While”

26
Q

Loops: For

A

this loop is used for a condition, or range or values that we already know,.

27
Q

Loops: Do

A
Do loops will perform a specific action as the condition is completed, this loops starts with do and follows with a while after 
Do
{
} 
While... (   )
28
Q

Radio buttons and groups

A

radio buttons only allow one option to be selected at a time, so groups must be set if you want different categories of options to be chosen instead of one

29
Q

Number Generator

A

this will make a number generator, you must establish a variable, type Random (name of gen) = new.Random();
then you want the scope
variable = (name of gen).next(0,21);

int Gen1;
Random Numbergenerator1 = new Random();
Gen1 = Numbergenerator1.Next(0,21);

the range should be from the base number to a set number but the set number must be +1

30
Q

Number Generator

A

this will make a number generator, you must establish a variable, type Random (name of gen) = new.Random();
then you want the scope
variable = (name of gen).next(0,21);

int Gen1;
Random Numbergenerator1 = new Random();
Gen1 = Numbergenerator1.Next(0,21);

the range should be from the base number to a set number but the set number must be +1

31
Q

Standard Deviation

A

from a range of data points, SD = SQ ROOT of ((a number from the value) minus (the mean)^2 / total number of values)

32
Q

Form level Variables

A

Variables set at the form level so this variable is known in every part of the code

33
Q

Normal Distribution

A

usually a bell curve showing the range of the averages

34
Q

Uniform Distribution

A

exact distribution numbers, like a dice can only have 1-6 possibilities

35
Q

Poisson Distribution

A

the formula used to calculate the rate that something will happen when given the average occurrences

36
Q

Series Circuits

A

circuits that get the same amount of power throughout, this doesn’t have and branching (ladder type) connections… kind of like a circular track.

37
Q

Parallel Circuits

A

circuits that have multiple different paths with the same voltage, depending on the resistance this will change how much voltage is found through the different branches.

38
Q

OHMS law

A

V = IR