Comp Apps Midterm 1 Flashcards

1
Q

How to get to VBA in Excel?

A

In excel>File>Options>Customize Ribbon>Select DEVELOPER

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

What does the PROJECT window contain?

A

The components of your project

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

What does the PROPERTIES window contain?

A

the properties of the components of your project

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

What is the VBA DEVELOPMENT AREA?

A

This is where you will compose your program, program code, and form layout

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

how do you start a COMMENT in VBA

A

start the line with a single apostrophe ‘ in the development area

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

What are MACROS?

A

short programs that carry out usually non-mathematical operations such as formatting and filling cells with values

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

what are SUBS?

A

-subroutines
-general purpose programs, can be written with or without parameters
-take more than one input parameter
-return more than one result
-cannot be used in an expression

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

What are FUNCTIONS?

A

-short programs that can carry out math and nonmath operations
-Functions usually require parameters, can be one or more
-all functions return only one result

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

Computer programs are organized in modules that are:

A

-INDEPENDANT and SELF-CONTAINED
-must be a SPECIFIC AND WELL-DEFINED FUNCTION
-should be FOCUSED and SHORT

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

What are the 3 basic types of DECISION STRUCTURES?

A

-If/Then/Else: structures
-If/Then/Else If: cascade structures
-Select Case:

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

What are the three major varieties of errors?

A

Syntax Error, Executive (or run-time) Errors, and Logic Errors

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

What is a syntax error?

A

violation of spelling conventions, placement of parentheses, number formatting, etc

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

What is an Executive (or run-time) error?

A

occur when a statement attempts an invalid operation (ie dividing by 0)

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

What is a logic error?

A

are due to faulty program logic (garbage in garbage out)`

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

What are two different approaches to terminating loops?

A

-Decision loops are terminated if a condition is true or false
-Count controlled loops are pre-set to repeat a fixed number of times

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

What are Do While loops?

A

loops required when repetition is required while a condition is TRUE

17
Q

What is Recursion in VBA?

A

-recursion is a problem solving tool available in VBA
-a recursive process is a process that calls itself

18
Q

When you open Excel, to write a VBA code for the 1st time, what is the 1st thing that should be done?

A

Save your workbook as FileName.xlsm, because it must be macro enabled

19
Q

How many “START” and “END” terminal symbols a flow chart should have?

A

1 of each

20
Q

What is structured programming?

A

certain conventions used in VBA coding that impose an order on non-sequential algorithms, collectively known as structured programming (idk wtf she means by any of this)