Ch. 4 Multiple Choice

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

14. An action that is ____________ occurs only when a certain condition is true. a. conditionally executed b. logically executed c. interactively driven d. truth bound

A

17. A(n) ____________ compares the values of two expressions. a. relational operator b. bitwise assessment c. associative operator d. comparative structure

A

2. When you want to create a check box on a form, you use the ____________, which is found in the Common Controls section of the Toolbox. a. CheckBox control b. RadioButton control c. ListBox control d. LinkLabel control

A

20. The ____________ has two possible paths of execution - one path is taken if the Boolean expression is true, and the other path is taken if the Boolean expression is false. a. dual-alternative decision structure b. comparative structure c. multi-decision structure d. branching structure

A

23. C# provides a special version of the decision structure known as the ____________, which simplifies the logic for testing a series of conditions. a. if-else-if statement b. else-try statement c. series statement d. multi-condition logic structure

A

30. The expression (A >= 1) XX (A <= 10) will determine if the value in A is inside a range, if "XX" is replaced by which logical operator? a. && b. ! c. || d. >=

A

31. The C# language provides the ____________ data type that you can use to create variables that hold true or false values. a. bool b. int c. Boolean d. double

A

39. A(n) ____________ is a variable that is passed as an argument to a method, and when the method is finished, a value is stored in the variable. a. output variable b. result variable c. parameter variable d. method variable

A

4. The ____________ is a multiple-alternative decision structure, which allows you to test the value of a variable or an expression and then use that value to determine which statement or set of statements to execute. a. switch statement b. if statement c. try-catch statement d. else statement

A

42. ____________ are useful when you want the user to select one choice from several possible choices. a. Radio buttons b. Check boxes c. Buttons d. Text boxes

A

44. When you want to create a group of radio buttons on a form, you use the ____________, which is found in the Common Controls section of the Toolbox. a. RadioButton control b. ListBox control c. ListView control d. ComboBox control

A

8. Each item in a ListBox has a(n) ____________, which is an integer that identifies the item's position in the ListBox. a. index b. list number c. unique identifier d. table key

A

13. A(n) ____________ can execute a set of statements only under certain circumstances. a. sequence structure b. decision structure c. circumstantial structure d. event structure

B

15. A(n) ____________ decision structure provides only one alternative path of execution. a. alternate path b. single-alternative c. single path d. ordered path

B

19. Which one of the following expressions determines if the value of the balance variable is equal to zero? a. 0 = balance b. balance == 0 c. balance = 0 d. balance <= 0

B

21. A(n) ____________ statement has two parts: an if clause and an else clause. a. logic b. if-else c. Boolean d. else-if

B

27. Both the && and || operators perform ____________, in which CPU time is saved by not checking the expression on the right side of the operator depending on the value of the expression on the left side of the operator. a. logical optimization b. short-circuit evaluation c. cycle-branching d. single-stage execution

B

28. The ____________ operator is the logical NOT operator, which is a unary operator that takes a Boolean expression as its operand and reverses its logical value. a. <> b. ! c. && d. ||

B

32. A(n) ____________ is a variable that often signals the value of a Boolean condition. a. sentinel b. flag c. event d. marker

B

34. The ____________ method can be used to determine whether one string is greater than or less than another string. a. String.Equals b. String.Compare c. String.IsGreater d. String.String

B

35. The ____________ method can determine whether a string contains a value that can be converted to a specific data type before it is converted to that data type. a. Parse b. TryParse c. Peek d. String.Compare

B

37. To convert a string to a double, use the ____________ method. a. String.ToDouble b. double.TryParse c. Try.ParseDouble d. ToString

B

40. The ____________ keyword is required when specifying a variable as an output argument. a. in b. out c. extern d. static

B

41. The process of checking input for errors before it is processed is called ____________. a. parsing b. input validation c. pre-rendering d. data authentication

B

45. RadioButton controls have a ____________ property that determines whether the control is selected or deselected. a. Selected b. Checked c. Pushed d. Active

B

9. When the user selects an item in a ListBox, the item's index is stored in the Listbox's ____________ property. a. DataValue b. SelectedIndex c. Index d. ValueIndex

B

1. A ____________ appears as a small box with some accompanying text. a. list box b. link c. check box d. radio button

C

11. A(n) ____________ is a logical design that controls the order in which a set of statements execute. a. elementary structure b. logic structure c. control structure d. sequence structure

C

16. A ____________ is an expression that can be evaluated as either true or false. a. binary expression b. double expression c. Boolean expression d. classical expression

C

24. The C# language provides a set of operators known as ____________, which you can use to create complex Boolean expressions. a. Boolean operators b. relational operators c. logical operators d. expressional operators

C

25. The ____________ operator is the logical AND operator, which takes two Boolean expressions as operands and creates a compound Boolean expression that is true only when both subexpressions are true. a. ! b. <> c. && d. ||

C

29. The expression (A < 1) XX (A > 10) will determine if the value in A is outside a range, if "XX" is replaced by which logical operator? a. && b. ! c. || d. >=

C

3. When a RadioButton or a CheckBox control's Checked property changes, a ____________ happens for that control. a. SelectionChanged event b. Checked event c. CheckChanged event d. Click event

C

33. You can use the ____________ operator to compare two strings. a. || b. && c. == d. !

C

36. The ____________ method can be used to convert a string to an integer. a. Try.Parse.int b. int.Parse c. int.TryParse d. TryParse.int

C

43. ____________ works by automatically deselecting any other items in the same group when a single item is selected. a. multiple selection b. mutually inclusive selection c. mutually exclusive selection d. monographic selection

C

6. Once you create a ListBox control, you add items you wish to display to its ____________. a. Display property b. Text property c. Items property d. Values property

C

10. If no item is selected in a ListBox, what value is in the SelectedIndex property? a. false b. true c. 0 d. −1

D

12. A(n) ____________ is a set of statements that execute in the order that they appear. a. control structure b. ordered structure c. command structure d. sequence structure

D

18. Which one of the following expressions determines whether the value of the length variable is greater than or equal to the value of the width variable? a. length < width b. width <= length c. length > width d. length >= width

D

22. ____________ are decision structures that appear inside other decision structures. a. paired decision structures b. hidden decision structures c. dual decision structures d. nested decision structures

D

26. The ____________ operator is the logical OR operator, which takes two Boolean expressions as operands and creates a compound Boolean expression that is true when either of the subexpressions is true. a. ! b. && c. <> d. ||

D

38. A string can be converted to a decimal with the ____________ method. a. decimal.ParseString b. decimal.ToString c. Try.Parse(decimal) d. decimal.TryParse

D

5. In Visual C#, you use the ____________ to create a list box on an application's form. a. ListView control b. MaskedTextBox control c. CheckedListBox control d. ListBox control

D

7. When the user selects an item in a ListBox, the item is stored in the ListBox's ____________ property. a. Checked b. SelectedValue c. DataSelection d. SelectedItem

D


संबंधित स्टडी सेट्स

Cultural anthropology final exam quiz compilation 1-1 /4

View Set

Forensic Toxicology: Fentanyls & Designer Drugs

View Set

DM 100 Waterfall PMP Questions (2022)

View Set

Unit Topic: Cells Honors Biology

View Set

MDC 4 Module 9+10 Practice Emergency, Trauma, Mass Casualty Nursing

View Set

Azure Pricing, SLAS, and Life Cycles

View Set