Search Header Logo

Quiz de Programare C#

Authored by Gheorghe Carmocanu

Physical Ed

6th - 8th Grade

Quiz de Programare C#
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Care va fi rezultatul următorului cod C#? static void Main(string[] args) { int a = 5; int b = 10; int c; Console.WriteLine(c = ++ a + b ++); Console.WriteLine(b); Console.ReadLine(); }

11, 10

15, 11

16, 11

16, 10

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Care va fi rezultatul următoarei conversii de cod C#? static void Main(string[] args) { char a = 'A'; string b = "a"; Console.WriteLine(Convert.ToInt32(a)); Console.WriteLine(Convert.ToInt32(Convert.ToChar(b))); Console.ReadLine(); }

1, 97

97, 65

65, 97

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Care va fi rezultatul următorului cod C#? int a,b; a = (b = 10) + 5;

b = 15, a = 5

b = 10, a = 5

a = 15, b = 10

a = 10, b = 10

4.

OPEN ENDED QUESTION

3 mins • 1 pt

Care va fi rezultatul următorului cod C#? static void Main(string[] args) { const int a = 5; const int b = 6; for (int i = 1; i = new int[2,3];

Evaluate responses using AI:

OFF

5.

OPEN ENDED QUESTION

3 mins • 1 pt

În ce linie a fost comisă o eroare? int[] numbers = {1, 2, 3, 4, 5}; for (int i = 0; i = new int[5];

Evaluate responses using AI:

OFF

6.

OPEN ENDED QUESTION

3 mins • 1 pt

int array = new int[5];

Evaluate responses using AI:

OFF

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?