Developing Software Flashcards

1
Q

In JavaScript, What does Sequence Mean?

A

Set of instructions in a program which follow from one another

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

In JavaScript, What does Selection Mean?

A

A decision made within a program when it decides to move on based on the occurring results of an event

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

In JavaScript, What does Iteration Mean?

A

Repetition of block statements within a program

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

In JavaScript, What is a Variable?

A

A label that refers to a memory location, something we can store on a computer

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

In JavaScript, What are the variable scopes?

A

Local - Variables declared within a function or loop

Global - Variables declared outside a function or loop

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

In JavaScript, What are some variable types?

A

Integer, Letters, Arrays etc.

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

In JavaScript, What is a function?

A

Block of code program to preform a particular task

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

In JavaScript, What is a parameter?

A

Named variables as part of a function

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

In JavaScript, what does ‘return’ do?

A

Stops the execution of a function and returns a value to the user

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

How do you make a comment in JavaScript?

A

//like this!

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

IF Statement

A

Useifto specify a block of code to be executed, if a specified condition is true

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

Else IF Statement

A

Useelse/else IFto specify a block of code to be executed, if the same condition is false

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

Switch Statement

A

Useswitchto specify many alternative blocks of code to be executed

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

For Loop

A

for- loops through a block of code a number of times

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

While Loop

A

loops through a block of code while a specified condition is true

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

Do-While Loop

A

also loops through a block of code while a specified condition is true

Thedo…whileis used when you want to run a code blockat least one time