programming Flashcards

to learn more about programming

1
Q

What is programming ?

A

programming is writing computer code to create a program, to solve a problem.

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

What is a program?

A

Sequences of instructions for a computer.

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

Define algorithms

A

a series of step by step instructions.

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

What is a pseudo code?

A

A method of writing up a set of instructions using the plain English language.

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

What is a flow chart?

A

A diagram that shows a process, made up of boxes representing steps, decision, inputs and outputs.

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

What is a programming language?

A

A language used by a programmer to write a piece of software.

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

What is a statement?

A

The smallest element of a programming language which expresses an action to be carried out.

Also it is a keyword in a programming language.

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

Define instruction

A

A single action that can be performed by a computer p.

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

What is a machine code?

A

A programming language that a computer understands

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

What does the statement ‘print’ do?

A

The ‘print’ statement outputs a message on the screen.

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

What does the statement ‘while’ do?

A

The ‘while’ statement implements a loop.

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

What does the statement ‘def’ do?

A

The ‘def’ statement creates a function or a procedure.

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

What do the statements ‘if’ and ‘else’ do?

A

Implement selection

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

How many statements are there in this line of code: print(“If I am 17, I can drive a car”)?

A

There is one statement - ‘print’ - in the line of code print(“If I am 17, I can drive a car”).

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