C# quiz

C# quiz

12th Grade

5 Qs

quiz-placeholder

Similar activities

Modelo OSI e TCP/IP (2)

Modelo OSI e TCP/IP (2)

10th Grade - University

10 Qs

Web Programming Quiz in Portuguese

Web Programming Quiz in Portuguese

University

10 Qs

Domótica 2025

Domótica 2025

University

10 Qs

ONLINE ICT QUIZ, 2024

ONLINE ICT QUIZ, 2024

12th Grade

10 Qs

3TDS - Programação Backend - Recuperação 1

3TDS - Programação Backend - Recuperação 1

12th Grade

10 Qs

Actividad incidencias 2024

Actividad incidencias 2024

9th - 12th Grade

10 Qs

RAs 2-3 - Desarrollo web orientado a los requerimientos

RAs 2-3 - Desarrollo web orientado a los requerimientos

12th Grade - University

10 Qs

C# quiz

C# quiz

Assessment

Quiz

Information Technology (IT)

12th Grade

Practice Problem

Hard

Created by

Hustler YT

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

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#.

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?