0

Visual Studio .net Quiz - 3

Description: Visual Studio .net Quiz - 3
Number of Questions: 10
Created by:
Tags: .net visual-studio
Attempted 0/10 Correct 0 Score 0

With A = False and B = True, which statement evaluates as False?

  1. A OR A

  2. A OR B

  3. B OR A

  4. B OR B

  5. None are true.


Correct Option: A

AI Explanation

To determine which statement evaluates as False, we can substitute the given values for A and B and evaluate each statement.

Given A = False and B = True, let's evaluate each statement:

A. A OR A Substituting the values, we have False OR False, which evaluates to False.

B. A OR B Substituting the values, we have False OR True, which evaluates to True.

C. B OR A Substituting the values, we have True OR False, which evaluates to True.

D. B OR B Substituting the values, we have True OR True, which evaluates to True.

E. None are true.

Therefore, the statement that evaluates as False is option A, A OR A.

Which TextBox method does not use the clipboard?

  1. Clear

  2. Copy

  3. Cut

  4. Paste

  5. All of these methods use the clipboard


Correct Option: A

Which TextBox property should always be changed first?

  1. AcceptsReturn

  2. BorderStyle

  3. Font

  4. Name

  5. Text


Correct Option: D

Which is not a valid value for the ListBox SectionMode Property?

  1. None

  2. One

  3. MultiSimple

  4. MultiExtended

  5. All of the above.


Correct Option: E

Setting the SelectedIndex property of a ListBox to -1 will:

  1. cause an error.

  2. cannot be done.

  3. de-select any selected item.

  4. Both a and b.

  5. All of the above.


Correct Option: C

Which method of a ListBox will remove just one item at a time?

  1. Items.RemoveAt

  2. Item.RemoveAt

  3. Items.ClearAt

  4. Item.ClearAt

  5. Items.Clear


Correct Option: A

The Items property of a ComboBox:

  1. is a collection of items.

  2. is the same as the Items property of a ListBox.

  3. contains methods and properties.

  4. Both a and b.

  5. All of the above.


Correct Option: E

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) The Items property of a ComboBox is a collection of items. This is correct because the Items property allows you to add, remove, and access the items in the ComboBox.

Option B) The Items property of a ComboBox is the same as the Items property of a ListBox. This is incorrect because although both ComboBox and ListBox have an Items property, they are separate controls with their own implementations.

Option C) The Items property of a ComboBox contains methods and properties. This is correct because the Items property provides methods and properties to manipulate the collection of items in the ComboBox.

Option D) The Items property of a ComboBox is both a collection of items and the same as the Items property of a ListBox. This is incorrect because option B is incorrect.

Option E) All of the above. This is the correct answer because options A and C are correct. The Items property of a ComboBox is a collection of items and it contains methods and properties.

Therefore, the correct answer is E. All of the above.

Which value for the ComboBox DropDownStyle property allows a user to type in data?

  1. DropDown

  2. DropDownSimple

  3. DropDownList

  4. Both a and b.

  5. All of the above.


Correct Option: A

Which two controls combined to form the ComboBox control?

  1. ListBox and TextBox

  2. ListBox and InputBox

  3. ListBox and MsgBox

  4. Label and TextBox

  5. Label and InputBox


Correct Option: A

When a condition in an If...Then statements tests true:

  1. the next Else statement is activated.

  2. the next If statement is activated.

  3. the next Then statement is activated.

  4. the End If statement is activated.

  5. a condition can never test true.


Correct Option: C
- Hide questions