Programming Basics Flashcards

1
Q

A sequence of statements

A

Program

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

A tool that runs a program’s statements

A

Interpreter

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

The act of carrying out each statements action

A

Run

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

A name that can hold a value

A

Variable

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

A specific action in a program

A

Statement

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

Shape used for an input statement

A

Parallelogram

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

Consists of text (characters) within double quotes, as in “Go #57!”

A

String Literal

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

Includes any letter (a-z, A-Z), digit (0-9), or symbol (~, !, @, etc.)

A

Character

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

Indicates where the next output item will be placed in the output

A

Cursor

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

A special two-character sequence \n whose appearance in an output string literal causes the cursor to move to the next output line

A

Newline

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

Outputting a variable’s value

A

Put x to output. No quotes surround variable x’s name

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

Text a programmer adds to a program, to be read by humans to better understand the code, but ignored by the program when executing. Starts with //

A

Comment

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

Blank spaces (space and tab characters) between items within a statement, and to newlines

A

Whitespace

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

Developed in 1963 and uses 7 bits per code, and has codes for 128 characters

A

ASCII (American Standard Code for Information Interchange)

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

Text that resembles a program in a real programming language but is simplified to aid human understanding.

A

Pseudocode

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

Depicts a program graphically, with a node for each statement.

A

Flowchart

17
Q

An integer variable’s initial value

A

0

18
Q

Type of language that the variable is known at compile-time instead of at run-time.

A

Statically Typed

19
Q

Examples of statically typed languages

A

Java, C, C++, FORTRAN, Pascal and Scala

20
Q

A class ofhigh-level programming languages, which atruntimeexecute many common programming behaviours that static programming languages perform duringcompilation.

A

Dynamically Typed Languages

21
Q

Examples of Dynamically Typed Languages

A

JavaScript,Python,Ruby,PHP,LuaandPerl

22
Q

A computer language that uses tags to define elements within a document.

A

Markup Languages (BBC, HTML, SGML, and XML)

23
Q

Language that is coded by a human, then that source code translates into assembly language so that the target program runs and returns a desired result

A

Compiled Language

24
Q

Language that is compiled in real time when it’s run, and it often uses simpler and more human-friendly syntax for coding

A

Interpreted Language

25
Q

Conditional statement that continually runs if the statement returns true; if false will end or jump to the next statement

A

While Loop

26
Q

Enables a particular set of conditions to be executed repeatedly until a condition is satisfied

A

For Loop

27
Q

Statement that executes a block of code at least once, and then either repeatedly executes the block, or stops executing it, depending on a given boolean condition at the end of the block

A

Do-While Loop