ITEC81 (Sir Rumer) Flashcards

1
Q

are the statements that controls the execution of the program based on the specified condition

it is useful for determining whether a condition is true or not

A

Control statements

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

it is the simplest form of control statement, frequently used in decision making and changing the control flow of the program execution

A

if-then statement

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

can be followed by an optional Else statement, which executes when the Boolean expression is false

A

If-then-else statement

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

provides a choice to execute only one condition or statement from multiple statements

A

if-then-elseif statement

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

allows a variable to be tested for equality against a list of values.

A

select case

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

must evaluate to any of the elementary data type in VB.NET, boolean, byte, char, date, double etc

A

expression

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

list of expression clauses representing match values for expression

A

expressionlist

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

following case that run if the select expression matches any clause in expressionlist

A

statements

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

statements following Case Else that run if the select expression does not match any clause in the expressionlist of any of the Case statements.

A

elsestatements

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

is triggered automatically when the user selects a different item in the ComboBox

A

SelectedIndexChanged

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

are fundamental for tasks that require repetition, such as iterating through collections, processing data, or performing calculations multiple times

A

Looping Statements

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

determines whether the loop will continue or terminate
represented by a diamond-shaped box

A

condition

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

will execute repeatedly as long as the condition remains true
represented by a rectangular box

A

Conditional code

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

it repeats the enclosed block of statements while a boolean condition is true or until the condition becomes true.

it could be terminated at any time with the Exit Do statement

A

Do Loop

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

continues until the specified condition is true. This loop is useful when you want to execute code until a certain condition is met

A

Do until loop

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

executes as long as the specified condition is true. It’s useful when the number of iterations is not known beforehand. Similar to the While Loop, but it can also be structured yo ensure the code block executes at least once.

A

Do While Loop

17
Q

This keeps the UI responsive during the loop

A

Application.DoEvents()

18
Q

This pauses the loop for half a second, making the easier to see the updates

A

Thread.Sleep()

19
Q

is used to execute a block of code a specific number of times. it’s particularly useful for iterating over a range of values or performing repetitive tasks.

A

For Next Loop

20
Q

used to mark the end of a For…Next Loop. It indicates that the loop should continue or terminate based on the conditions defined in the loop

A

Next

21
Q

is used to iterate over a collection or an array

this loops allows you to process each item in the collection without needing to manage the index manually, making it simple and cleaner for working with collections.

A

For Each… Next Loop

22
Q

a variable that represents the current element in the collection during each iteration

A

item

23
Q

the collection or array you want to iterate over

A

collection

24
Q

is used to execute a blocks of code repeatedly as long as a specified condition is true.

it is useful when the number of iterations is not known beforehand and you want to continue executing the code until a certain condition changes

A

While End Whileloop

25
Q

This is a boolean expression that is evaluated before each iteration of the loop. if it evaluates to true, the code inside the loop will execute. If it evaluates to false, the loop will terminate

A

condition

26
Q

this is the section of code that will run as long as the condition is true.

A

code block

27
Q

is used in conjuction with the With statement to simplify code that manipulates an object.

A

End with

28
Q

allows you to execute a series of statements on a specified object without repeatedly referencing the object

A

with statement

29
Q

this keyword introduces the block, specifying the object to work with

A

With

30
Q

this is the instance of the class or object you are working on.

A

object

31
Q

this keyword closes the block

A

End With

32
Q

refer to placing one loop inside another. This structure allows you to perform complex iterations over data sets, such as multi-dimensional arrays or combinations of items.

A

Nested Loops

33
Q
A