Coding Test Flashcards Preview

Computer Science > Coding Test > Flashcards

Flashcards in Coding Test Deck (23):
1

Why design a programming language?

To give a machine instructions

2

What is wrong with our language?

Implied

Contradictions

Words with multiple meanings

3

How to remove ambiguities?

Specific and limited syntax

Not many words

4

What happens when you reduce the number of commands?

Increase flexibility

Makes harder to use

5

Functions and abstraction

Functions take a list of commands and call it one thing

6

Are functions reusable?

Yes

7

Functions and the user

Functions allow the user to clean up the code

visually more pleasing and helpful

8

Function or loop? Repetition

Loop

9

Function or loop? Parameters

Function

10

Function or loop? Call

Function

11

Abstraction and teams

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

Can get blocks of code online

12

Algorithm

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

13

Sequencing

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

14

Selection

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

15

Iteration

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

16

Function def.

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

17

Abstraction

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

18

API

A collection of commands that are available to the coder

19

Documentation

A description of the behavior of the functions

20

Parameter

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

21

Loop def.

A programming construct that repeats a group of commands

22

Iteration (other def)

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

23

For loop

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.