Short Answer Chapter 4

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

How do you add items to a ListBox using the Properties window?

When you select the Items property, an ellipses button (...) appears. Click the ellipses button.

You need to test a condition and then execute one set of statements if the condition is true. If the condition is false, you need to execute a different set of statements. What structure will you use?

if- else

What are the two arguments that you pass to a TryParse method?

(1) the string that you want to convert (2) the name of the variable in which you want to store the converted value.

What is a flag and how does it work?

A flag is a Boolean variable signaling that some condition exists in the program. When the flag is set to false it indicates the condition does not yet exist. When the flag is set to true it indicates that the condition does exist.

When determining whether a number is inside a range, which logical operator is it best to use?

Best to use the && operator.

Briefly describe how the && operator works.

Both sides of the operator must be true for it to provide a true.

How can you read the selected item from a ListBox while preventing an exception from occurring if no item is selected?

By stteing the SlectedIndex != -1.

How do you determine in code whether a RadioButton control or a CheckBox control is selected?

By using the checked property.

Briefly describe how the || operator works.

Only one side of the operator must be true to provide a true.

What is meant by the term conditionally executed?

The action is conditionally executed because it is performed only when a certain condition is true.


Set pelajaran terkait

Psych - Unit 1 - Chapter 9: Legal and Ethical Issues

View Set

Human geo chptr. 6 (political geography)

View Set

Biography- Mother Teresa Grade 3(人物传记 德肋撒修女 三年级)

View Set

Worksheet problems for ch. 5, 6, 7

View Set

School Subjects + Days of the Week

View Set

Introduction to Ratios and Proportional Relationships

View Set

Ch 9: Heaps, Priority Queues, and Heap Sort

View Set