C# Programming 2

C# Programming 2

12th Grade

10 Qs

quiz-placeholder

Similar activities

CH3CH4電腦基本單元與硬體概論

CH3CH4電腦基本單元與硬體概論

12th Grade

15 Qs

Five Nights At Freddy's: Security Breach Quiz

Five Nights At Freddy's: Security Breach Quiz

KG - Professional Development

13 Qs

Bài 29. Nhận biết lỗi chương trình

Bài 29. Nhận biết lỗi chương trình

9th - 12th Grade

14 Qs

Avaliação 1T - JavaScript

Avaliação 1T - JavaScript

9th - 12th Grade

10 Qs

Data Structures: Linked Lists and Hashtables

Data Structures: Linked Lists and Hashtables

11th Grade - University

14 Qs

XI_осн_веб_кон

XI_осн_веб_кон

9th - 12th Grade

10 Qs

What would you do if...

What would you do if...

1st - 12th Grade

10 Qs

Quiz on Array

Quiz on Array

11th - 12th Grade

10 Qs

C# Programming 2

C# Programming 2

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Anthony Orajiaka

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 output of the following code?
bool isCSharpFun = true;
Console.WriteLine(isCSharpFun);

true

false

1

0

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? int x = 10;
if (x > 5) {
Console.WriteLine("Hello");
}
else
{
Console.WriteLine("Goodbye");
}

Hello

Goodbye

Error

Nothing

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to exit a switch statement?

stop

exit

break

return

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times will this loop run?
int i = 1;
while (i < 5) {
Console.WriteLine(i);
i++;
}

3

4

5

Infinite

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax for a for loop?

for (int i = 0; i < 10; i++)

for i in range(0, 10)

loop(i = 0; i < 10; i++)

for i = 0; i < 10; i++

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does `continue;` do inside a loop?

Stops the loop completely

Skips the current iteration and moves to the next

Restarts the loop

Exits the program

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following correctly declares an array in C#?

int[] numbers = {1, 2, 3};

array numbers = {1, 2, 3};

int numbers = [1, 2, 3];

numbers = new array(1,2,3);

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?