Pre-Assessment Flashcards

1
Q

What kind of operator is the == in the expression i == 20?

A

Equality

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

What is the purpose of parentheses () in a programming expression?

A

to GROUP expressions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
Function F()
   Put "Hey" to output

What entire output appears after three successive calls to F()?

A

Hey Hey Hey

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

What is a valid user-defined function name?

A

Any valid identifier

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

Order the tasks needed to create a pyramid (large on bottom, small on top) on a table from first (1) to last (4).

Select your answer from the pull down list.

A

Clear table
place largest
Place Middle
Place Smallest

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

Which phase of a waterfall approach would create a sequence diagram that specifies the required order of events between completed program components?

A

Testing

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

Which phase of an agile approach would define a hypothesis to find a problem in a program?

A

Testing

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

Which phase of an agile approach would create an executable program?

A

Implemntation

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

Which phase of a waterfall approach defines a program’s goals?

A

Analysis

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

A company has a new project it wishes to implement to track and analyze employee and customer interactions. The company leadership determines that the system should support direct data entry as well as automated data capture of phone calls and emails.

A

Analysis

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

A programmer shows a program’s first version to a customer. Based on feedback, the programmer begins writing a second version of the program.

In which phase of an agile approach does the writing of a second version of the program occur?

A

Implementation

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

What is an advantage of using a programming library?

A

The code has already been tested.

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

Which language is dynamically typed?

C
C++
Java
Python

A

Python

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
Which language is not built on object-oriented design principles? 
C
C++
Java
Python
A

C - PROCEDURAL

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

A programmer wants a compiler to report an error if an integer variable is assigned with a string.

Which kind of language should the programmer use?

A

Statically typed

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

What is a characteristic of a compiled language?

A

Converts to machine language before running

Run Faster then inte

17
Q

What is a characteristic of an interpreted language?

A

Runs easily on different kinds of machines

18
Q

What is an advantage of interpreted programs?

A

They can be modified at run time.

19
Q

Which characteristic specifically describes interpreted languages?

A

They can be run one statement at a time.

They can run on any machine having the right interpreter.

20
Q

For LOOP

A

iterations can be calculated BEFORE

21
Q

DO-While

A

Do-Execute

Then checks

22
Q

Python, Javascript, and MATLAB are each what kind of language?

A

Interpreted