C# quiz

C# quiz

12th Grade

5 Qs

quiz-placeholder

Similar activities

Quizizz 03 Javascript intro parte III

Quizizz 03 Javascript intro parte III

12th Grade

6 Qs

Quiz Informatika

Quiz Informatika

11th Grade - University

10 Qs

3F_14042025_Verifica per orale Informatica

3F_14042025_Verifica per orale Informatica

11th Grade - University

10 Qs

Quiz CG - Code V2

Quiz CG - Code V2

University

10 Qs

Java Diagnostic Assessment

Java Diagnostic Assessment

12th Grade

10 Qs

Quiz de Programare C++

Quiz de Programare C++

7th Grade - University

8 Qs

java2/67

java2/67

12th Grade - University

10 Qs

Operasi Input & Output C++

Operasi Input & Output C++

University

10 Qs

C# quiz

C# quiz

Assessment

Quiz

Information Technology (IT)

12th Grade

Hard

Created by

Hustler YT

Used 3+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the correct way to declare a variable in C#?

  • a) int x = 10;

  • b) x = 10 int;

  • c) variable int x = 10;

d) int: x = 10;

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of these is the correct way to write a comment in C#?

  • a) // This is a comment

  • b) /* This is a comment */

  • c) Both a) and b)

d) None of the above

3.

FILL IN THE BLANK QUESTION

20 sec • 1 pt

A __________ is used to store a value in C#

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?
int a = 5;

int b = 10;

Console. WriteLine(a + b);

5

10

15

error

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

The keyword __________ is used to display output in the console in C#.

Discover more resources for Information Technology (IT)