Section 1

Preview this deck

False

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (67)

Section 1

(50 cards)

False

Front

The value of a declared constant can be changed anywhere in the program code

Back

True

Front

A variable must be declared before it is used

Back

False

Front

Modulus division truncates the decimal portion of the quotient to result in an integer

Back

False

Front

Aligning the If, the Else, and the End If statements in a decision structure and indenting the lines in between is a code convention that makes the statement easier to read.

Back

False

Front

An example of a relational operator is And.

Back

True

Front

An If...Then...Else statement that contains another If...Then statement is said to be nested.

Back

True

Front

A module-level declaration is global to any code in the Form class

Back

True

Front

Relational operators are used to form Boolean expressions

Back

True

Front

Rnd() generates random numbers greater than or equal to 0 and less than 1

Back

True

Front

A Boolean expression evaluates to true or false

Back

True

Front

Commenting out selected lines of text is a debugging technique

Back

True

Front

Values represented by the Double data type hold decimal numbers.

Back

False

Front

A local declaration allows a variable to be accessible only in the procedure it is declared in

Back

True

Front

A Select...Case statement uses the result of an expression to determine which block of code to execute

Back

False

Front

The indentation used in an If...Then...Else statement has an effect on the execution of the statement

Back

True

Front

The value of a constant can be assigned only in the declaration

Back

True

Front

In Visual Basic, widget and Widget refer to the same variable

Back

False

Front

Identifiers are case sensitive

Back

True

Front

The value of a variable is changed through assignment

Back

False

Front

Using Rnd() without including Randomize() will produce an error

Back

More than one radio button in a set can be selected at a time

Front

False

Back

True

Front

Objects can be moved to a new location on the form.

Back

False

Front

There is NO difference between the (Name) and Text properties of a Label object

Back

False

Front

The & operator is used to assign a new value to a variable

Back

False

Front

Keywords can be used as variable identifiers

Back

True

Front

A GroupBox object is used to group radio buttons

Back

True

Front

Logic errors must be found by the programmer

Back

True

Front

Nothing is a keyword

Back

False

Front

A numeric expression must be enclosed in quotation marks in an assignment statement

Back

False

Front

The If...Then statement executes a set of statements when a condition is false

Back

True

Front

The MenuStrip control is used to add a menu to an application

Back

True

Front

A value with a decimal portion is automatically rounded to a whole number when assigned to an Integer variable

Back

Comments affect the way statements execute

Front

False

Back

False

Front

A variable name can contain spaces

Back

Not following code conventions will generate an error when an application is run

Front

False

Back

False

Front

A decision structure must have an Else excuse

Back

True

Front

Button object names should begin with btn

Back

True

Front

The TEXT property of a Form object defines what is displayed in the title bar of the form.

Back

Multiple variables with different data types can be declared in a single statement

Front

False

Back

False

Front

An Integer variable that is declared but not initialized stored the value of 1

Back

False

Front

In a numeric expression, integer division is performed after addition

Back

The properties of an object can only be set in the Properties window of the IDE

Front

False

Back

True

Front

A variable is a name for a value stored in memory

Back

True

Front

Grouping variables together in a single statement is good programming style only when the variables represent related items

Back

True

Front

A variable can be declared and initialized in the same statement

Back

False

Front

A constant value can be changed from its initial assignment

Back

True

Front

An error will be generated when hello is assigned to an Integer variable

Back

True

Front

The Val() function converts text box data to a numeric value

Back

False

Front

The statement Me.lblMessage.Text="Hello!" sets the (Name) property of the lblMessage Label object to Hello!

Back

False

Front

A local declaration allows a variable to be accessible to any code in the Form class

Back

Section 2

(17 cards)

False

Front

Setting the Checked property of a CheckBox object True displays an empty check box

Back

True

Front

An algorithm is a set of steps that tell how to solve a problem.

Back

True

Front

A method is a named statement that perform a single well defined task

Back

False

Front

Including the statement Rnd(new)ensures a different sequence of random numbers will be generated each time the program is run.

Back

True

Front

The lifetime of a global variable is the duration of the program

Back

True

Front

A static variable's scope is local to the procedure in which it is declared, but its lifetime is the duration of the program

Back

What type of programming language is Visual Basic

Front

an object-oriented language

Back

True

Front

A counter variable can count backwards

Back

False

Front

Only one check box can be selected at a time

Back

True

Front

A counter in an event procedure should be declared as a Static or Global variable so that it is initialized only once

Back

False

Front

A static variable is declared with the keyword Dim

Back

to size an object

Front

select it and then drag a handle

Back

True

Front

Check boxes, radio buttons, and text boxes all accept user input.

Back

True

Front

Operator precedence can be changed by using parentheses

Back

False

Front

A counter variable is a variable storing a number that is incremented by varying amounts

Back

True

Front

The statement numAttempts += 1 updates the counter numAttempts by 1

Back

Which is NOT a property of the Label control?

Front

Style

Back