C# - Module 3 Quiz

C# - Module 3 Quiz

University

10 Qs

quiz-placeholder

Similar activities

Quiz Alprox 3

Quiz Alprox 3

University

10 Qs

DAA quiz2

DAA quiz2

University

15 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

Chap 1: What is a program made of?

Chap 1: What is a program made of?

University

13 Qs

Computer Science: Computer Systems

Computer Science: Computer Systems

6th Grade - University

10 Qs

AI

AI

KG - University

10 Qs

Innovative or Not

Innovative or Not

KG - University

12 Qs

POP QUIZ 4 (DFC40243)

POP QUIZ 4 (DFC40243)

University

10 Qs

C# - Module 3 Quiz

C# - Module 3 Quiz

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Ahmed Aweis

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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;

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?