Filters
Question type

Study Flashcards

You use the ____ tool in the toolbox to add a list box to an interface.


A) LBox
B) ListBox
C) List
D) Box

E) B) and D)
F) All of the above

Correct Answer

verifed

verified

Write a pretest loop that adds together integers from 1 to 50. Use the intNumber variable (which contains the number 1) to keep track of the integers. Store the result in the intResult variable (which contains the number 0). Use the Do...Loop statement and the While keyword.

Correct Answer

verifed

verified

Do While intNumber
...

View Answer

The number of choices the user can select from a list box is controlled by the list box's ____ property.


A) Selection
B) Display
C) Control
D) SelectionMode

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

In a nested repetition structure, one loop, referred to as the ____ loop, is placed entirely within another loop, called the ____ loop.


A) inner, outer
B) primary, secondary
C) minor, major
D) dependent, independent

E) All of the above
F) B) and C)

Correct Answer

verifed

verified

Adding increments of a negative number is referred to as ____.


A) decrementing
B) initializing
C) deprocessing
D) negating

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Visual Basic's ____ class contains many methods that your applications can use to perform financial calculations.


A) Money
B) Monetary
C) Finance
D) Financial

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

To leave a Do...Loop structure earlier than its full completion, you must execute a(n) ____ statement.


A) End Do
B) Bypass
C) Leave
D) Exit Do

E) C) and D)
F) B) and D)

Correct Answer

verifed

verified

You can stop an endless loop by clicking Debug on the menu bar, and then clicking ____.


A) Stop Debugging
B) Cancel Debugging
C) Abort Debugging
D) End Debugging

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

A ____ structure is also referred to as a loop.


A) selection
B) sequence
C) repetition
D) recursion

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

What is the Refresh method? Write the syntax for this method.

Correct Answer

verifed

verified

The Refresh method is used to refresh th...

View Answer

What is an accumulator? What does it mean to initialize and update an accumulator in a program?

Correct Answer

verifed

verified

An accumulator is a numeric variable use...

View Answer

In a pretest loop, the evaluation of the condition occurs after the instructions within the loop are processed.

A) True
B) False

Correct Answer

verifed

verified

Each time either the user or a statement selects an item in a list box, the list box's SelectedValueChanged and ____ events occur.


A) SelectedItemChanged
B) SelectionChanged
C) SelectedIndexChanged
D) ItemChanged

E) A) and C)
F) B) and C)

Correct Answer

verifed

verified

Write two different Do...Loop clauses that stop the loop when the value in the intAmount is less than or equal to the value in the intLimit variable. Use the Until keyword in the first clause, and use the While keyword in the second clause.

Correct Answer

verifed

verified

Do Until i...

View Answer

A unique number called a(n) ____ identifies each item in a collection.


A) counter
B) index
C) accumulator
D) tracker

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Case-Based Critical Thinking Questions Case 1 - XYZ Solutions You have just started working for XYZ Solutions as a programmer. Your first assignment is to review and correct various code so that you can become familiar with the company's programs. The following code is not working properly. The message should display four times. What needs to be changed for the code to work properly? Do While intCounter MessageBox.Show("OK") IntCounter = intCounter + 1 Loop


A) intCounter should be changed to intCounter = 5
B) intCounter should be changed to intCounter > 5
C) intCounter = 1 should be added before the Do statement
D) intCounter = 0 should be added before the Do statement

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

You should use a ____ control to provide keyboard access to a list box.


A) radio button
B) text
C) check box
D) label

E) A) and C)
F) None of the above

Correct Answer

verifed

verified

Write the assignment statements needed to increment the intCount counter by 1 and update the decBalance variable by the value stored in the decOrderAmount variable.

Correct Answer

verifed

verified

intCount = intCount + 1
decBa...

View Answer

Which of the following statements pauses program execution for 3 seconds?


A) System.Threading.Thread.Pause(300)
B) System.Threading.Thread.Sleep(300)
C) System.Threading.Thread.Pause(3000)
D) System.Threading.Thread.Sleep(3000)

E) All of the above
F) C) and D)

Correct Answer

verifed

verified

A list box should contain a minimum of ____ item(s) .


A) two
B) three
C) four
D) five

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Showing 41 - 60 of 60

Related Exams

Show Answer