C# Basics and Operations

C# Basics and Operations

Professional Development

15 Qs

quiz-placeholder

Similar activities

ADA - Coding Tank

ADA - Coding Tank

Professional Development

10 Qs

CPR_Quiz_Arrays and strings

CPR_Quiz_Arrays and strings

Professional Development

20 Qs

Quiz for Module2

Quiz for Module2

Professional Development

10 Qs

PJP Apr 23

PJP Apr 23

Professional Development

10 Qs

SYP Chapter 1 & 2

SYP Chapter 1 & 2

Professional Development

20 Qs

Basics of Python Programming Unit-1

Basics of Python Programming Unit-1

University - Professional Development

20 Qs

DAY1

DAY1

Professional Development

15 Qs

M2 - Topic 5 - Variables & Constants

M2 - Topic 5 - Variables & Constants

Professional Development

10 Qs

C# Basics and Operations

C# Basics and Operations

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

Rodrigo Calapan

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

var age;

string age = 25;

float age;

int age;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid data type in C#?

char*

int

string[]

float

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What operator is used for addition in C#?

/

*

+

-

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a function in C#?

public returnType functionName(parameterType parameterName) { // function body }

functionName(parameterType parameterName) { // function body }

public functionName(parameterType) { // function body }

returnType functionName(parameterType parameterName)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value of an integer variable in C#?

1

null

-1

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to define a constant in C#?

static

final

immutable

const

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 5 / 2 in C#?

2

1

2.5

3

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?