Algorithm in Pseudocode Flashcards

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

What is an algorithm?

A

An algorithm is a set of logical steps to be followed to perform a particular task.

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

What are the two types of conditional statements?

A

If… then… statement and case statement

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

What conditional statement is used for more than two conditions?

A

If… then… elseif … statement

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

What is iteration?

A

Repeated execution of a set of lines is called iteration.

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

What are the two methods to represent an algorithm?

A

Pseudocode and flowchart

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

What statement is used for data entry?

A

INPUT statement

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

What statement is used for display a variable?

A

PRINT statement

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

What operator is used for assigning a variable?

A

← operator

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

What type of programming statements are used for iteration?

A

Loop statements

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

What are the types of loop statements?

A

For… to… next, repeat… until and while… do…

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

What operator is used for ‘not equal to’ comparisons?

A

!= or <>

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

What operator is used for grouping comparisons?

A

( )

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