C# Data Types and Identifiers Quiz 2

C# Data Types and Identifiers Quiz 2

12th Grade

•

40 Qs

quiz-placeholder

Similar activities

Assessment Semester I Informatics (Literasi Digital)

Assessment Semester I Informatics (Literasi Digital)

10th Grade - University

•

40 Qs

INFORMATIKA JARINGAN KOMPUTER DAN INTERNET

INFORMATIKA JARINGAN KOMPUTER DAN INTERNET

10th Grade - University

•

45 Qs

TIK-9

TIK-9

8th Grade - University

•

40 Qs

Информатика ҰБТ

Информатика ҰБТ

9th - 12th Grade

•

45 Qs

BTUI'24 - Inter-school ICT Quiz - Quarter Finals

BTUI'24 - Inter-school ICT Quiz - Quarter Finals

12th Grade - University

•

40 Qs

Class 11-12

Class 11-12

12th Grade

•

40 Qs

Soal Arduino Wokwi

Soal Arduino Wokwi

12th Grade

•

35 Qs

C# Data Types and Identifiers Quiz 2

C# Data Types and Identifiers Quiz 2

Assessment

Quiz

•

Information Technology (IT)

•

12th Grade

•

Practice Problem

•

Medium

Created by

Rachel J. Vergara

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a valid identifier in C#?

1number

firstName

class

new

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What keyword is used to declare a constant in C#?

var

static

const

final

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a C# keyword?

score

data

length

public

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these cannot be used as an identifier unless prefixed with @?

PI

class

Temp_1

dataType

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What happens if you try to assign a new value to a constant?

The value changes

A compilation error occurs

The value is updated at runtime

Nothing happens

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which data type stores a single Unicode character?

string

bool

int

char

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the correct syntax to declare a variable of type int with a value of 25?

int age = 25;

int = 25 age;

25 = int age;

int age(25);

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?