ITE/CS no.5 Flashcards

1
Q

A type of control structure that enables programs to perform statements repeatedly as long as a condition remains true.

A

LOOPING CONTROL STRUCTURE

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

Also called finite loops

A

INDEX LOOPS

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

Also called unended loops

A

INFINITE LOOPS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  • Repeats a statement or group of statements while a given condition is true.
  • It tests the condition before executing the loop body.
  • minimum output is 0 or more
A

WHILE LOOP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  • It executes the code block once, before checking if the condition is TRUE, then it will repeat as long as the condition is TRUE.
  • minimum output is 1 or more
A

DO WHILE LOOP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  • A repetition control structure that allows you to efficiently write a loop that needs to execute a specific number of times
  • the minimum output is 0 or more
A

FOR LOOP

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

It is a collection of data items, all of the same type, accessed using a common name.

A

ARRAYS

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

These are declared by providing more than one set of square [ ] brackets after the variable name in the declaration statement.

A

MULTIDIMENSIONAL ARRAYS

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

________ dimensional arrays do not require the dimension to be given if the array is to be completely initialized.

A

ONE DIMENSIONAL ARRAYS

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

these are used to rearrange a given array or list elements according to a comparison operator on the elements

A

SORTING ALGORITHMS

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

list in which data items are placed in a particular order

A

SORTED LIST

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

list in which data items are placed in no particular order; the only relationships between data elements are the list predecessor and successor relationships.

A

UNSORTED LIST

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

A category of unsorted list in which the arrangement of the elements are in decreasing order, then you need to sort it in increasing order

A

WORST CASE

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

A category of unsorted list in which the arrangement of the elements are in random order, then you need to sort it in increasing order

A

AVERAGE CASE

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

A category of unsorted list in which the arrangement of the elements are in increasing order, then you need to sort it in increasing order

A

BEST CASE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
  • an arrangement of its members into a sequence or linear order, or if the set is already ordered, a rearrangement of its elements.
  • the act or process of changing the linear order of an ordered set.
A

PERMUTATION

17
Q

It is the process in which a new permutation is formed

A

PASS (P0 to Pn)

18
Q

the exchanging of values from different locations or exchanging positions of two values.

A

SWAP

19
Q
  • it is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in the wrong order.
  • also referred to as sinking sort
A

BUBBLE SORT

20
Q

It sorts an array by repeatedly by finding the minimum element (considering ascending order) from the unsorted part and putting it at the beginning.

A

SELECTION SORT

21
Q
  • The sorting mechanism where the sorted array is built having one item at a time.
  • The array elements are compared with each other sequentially and then arranged simultaneously in some particular order
A

INSERTION SORT