Coding Test Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Why design a programming language?

A

To give a machine instructions

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

What is wrong with our language?

A

Implied

Contradictions

Words with multiple meanings

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

How to remove ambiguities?

A

Specific and limited syntax

Not many words

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

What happens when you reduce the number of commands?

A

Increase flexibility

Makes harder to use

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

Functions and abstraction

A

Functions take a list of commands and call it one thing

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

Are functions reusable?

A

Yes

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

Functions and the user

A

Functions allow the user to clean up the code

visually more pleasing and helpful

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

Function or loop? Repetition

A

Loop

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

Function or loop? Parameters

A

Function

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

Function or loop? Call

A

Function

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

Abstraction and teams

A

I can use Ferris’s code without knowing how it works

Can get blocks of code online

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

Algorithm

A

A precise sequence of instructions and processes that can be executed by the computer

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

Sequencing

A

is the application of each step of an algorithm in the order in which the statements are given.

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

Selection

A

uses a Boolean condition (a TRUE/FALSE condition) to determine which of two parts of an algorithm is used.

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

Iteration

A

the repetition of part of an algorithm until a condition is met for a specified number of times

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

Function def.

A

A piece of code that you can easily call over and over again

17
Q

Abstraction

A

Giving functionality to higher level protocols without needing to know how the lower level protocols work

18
Q

API

A

A collection of commands that are available to the coder

19
Q

Documentation

A

A description of the behavior of the functions

20
Q

Parameter

A

An extra piece of information that you pass to the function to customize it for a specific need.

21
Q

Loop def.

A

A programming construct that repeats a group of commands

22
Q

Iteration (other def)

A

“loop” by another name - the repetition of a statement, process, or procedure.

23
Q

For loop

A

For Loop - A particular kind of looping construct provided in many languages. Typically, a for loop defines a counting variable that is checked and incremented on each iteration in order to loop a specific number of times.