C# - Module 3 Quiz

C# - Module 3 Quiz

University

10 Qs

quiz-placeholder

Similar activities

PythonTest

PythonTest

6th Grade - Professional Development

11 Qs

programming

programming

University

10 Qs

VB QUIZ 3

VB QUIZ 3

University

10 Qs

Programming Practice Quiz 3

Programming Practice Quiz 3

University

9 Qs

หน่วยที่ 6 การสร้างฟอร์ม

หน่วยที่ 6 การสร้างฟอร์ม

University

10 Qs

Manipulating Data

Manipulating Data

University - Professional Development

15 Qs

PROG3 - Chapter 6

PROG3 - Chapter 6

University

10 Qs

MLBB Pagoh Quiz

MLBB Pagoh Quiz

1st Grade - University

10 Qs

C# - Module 3 Quiz

C# - Module 3 Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Ahmed Aweis

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a ComboBox in C#?

To display a text box combined with a ListBox

To create objects on a form with mouse clicks

To remove items from a list

To clear the entire list

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you add an item to a ComboBox in C#?

comboBox1.Items.Add('Wednesday')

comboBox1.Items.Add('Friday')

comboBox1.Items.Add('Saturday')

comboBox1.Items.Add('Sunday')

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you retrieve the displayed item from a ComboBox in C#?

var = comboBox1.SelectedItem;

var = comboBox1.Text;

var = comboBox1.SelectedText;

var = comboBox1.SelectedValue;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you remove an item from a ComboBox at a specified index in C#?

comboBox1.Items.RemoveAt(0);

comboBox1.Items.RemoveAt(2);

comboBox1.Items.RemoveAt(1);

comboBox1.Items.RemoveAt(3);

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the DropDownStyle property specify in a ComboBox in C#?

Whether the list is displayed in a drop-down

Whether the list is always displayed

Whether the text portion can be edited

All of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you set the selected item in a ComboBox to 'test3' in C#?

comboBox1.SelectedItem = 'test3';

comboBox1.SelectedItem = 'test2';

comboBox1.SelectedItem = 'test4';

comboBox1.SelectedItem = 'test1';

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you make a ComboBox read-only in C#?

comboBox1.Enabled = false;

comboBox1.ReadOnly = true;

comboBox1.Enabled = true;

comboBox1.ReadOnly = false;

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?