Lesson 1 PREFINALS Flashcards

1
Q

It is used to “jump out” of a switch statement.

A

Break Statement

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

It can also be used to jump out of a loop.

A

Break Statement

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

This statement breaks one iteration
(in the loop), if a specified condition occurs,
and continues with the
next iteration in the loop.

A

Continue Statement

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

It allows us to
execute specific blocks of code a number of
times.

A

Repetition Control Structures

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

is a statement or block of
statements that is repeated as long as some condition is satisfied.

A

While loop

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

the statement inside this loop is executed several times as long as the condition is satisfied.

A

Do while loop

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

It allows execution of the same code a number of times.

A

for loop

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

It Initializes the loop variable.

A

Initialization Expression

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

It compares the loop variable to some limit value

A

Loop Condition

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

It updates the loop variable

A

Step Expression

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

These are used to store multiple values in a single variable, instead of declaring separate variables for each value.

A

Arrays

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

To declare this, define the variable type, specify the name of the array followed by square brackets and specify the number of elements it should store:

A

Array

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

You can access an array element by referring to the index number inside _______

A

Square Brackets []

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

These are like a row of boxes where you can store things where each box can hold one item, such as a number or a word. For example, in an array of numbers, the first box might hold 5, the second 10, and so on

A

1D Arrays

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

In 1D Array, you can easily find or change what’s in each box by referring to its position, called an _______.

A

Index

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

These are handy because they let you store lots of related data in one place and access it quickly.

A

Arrays

17
Q

You can loop through the array elements with the _______.

A

for loops

18
Q

This is introduced in C++ version 11 (2011), which is used exclusively to loop through elements in an array (and other data structures, like vectors and lists)

A

for-each loop

19
Q

you can iterate through an array by using an _______to access each element.

A

Index

20
Q

you don’t have to specify the size of the array. The compiler is smart enough to determine the size of the array based on the number of inserted values:

A

Omit Array Size

21
Q

It ______ operator is used to determine the memory size of types or objects in bytes.

A

sizeof operator

22
Q

It can help calculate the number of elements in a static array (an array whose size is fixed at compile time).

A

sizeof operator

23
Q

is essentially an array of arrays. It’s a way to store data in a grid or matrix format, where each element is accessed by two indices: one for the row and one for the column.

A

2D Array

24
Q

This structure is commonly used for tasks involving tables, grids, or matrices, like representing a chessboard, image data, or other tabular information.

A

2D Array

25
Q

It is a collection of two-dimensional arrays.

A

3D Array

26
Q

It can be visualized as multiple 2D arrays stacked on top of each other

A

3D Array

27
Q

It is an extension of a 2D array, where each element of it is accessed using three indices

A

3D Array

28
Q

It is an array that has more than one dimension, allowing you to store and manipulate data in a grid, table, or higher-dimensional structure. Each dimension represents a level of data organization, such as rows, columns, and layers.

A

Multi-Dimensional Array

29
Q

It is an array of arrays. To declare it, define the variable type, specify the name of the array followed by square brackets which specify how many elements the main array has, followed by another set of square brackets which indicates how many elements the sub-arrays have:

A

Multi-Dimensional Array