C# Basics and Operations

C# Basics and Operations

Professional Development

15 Qs

quiz-placeholder

Similar activities

HACKATHON HUSTLE(ROUND 2)

HACKATHON HUSTLE(ROUND 2)

Professional Development

20 Qs

Day 8

Day 8

Professional Development

10 Qs

HACKATHON HUSTLE(ROUND 1)

HACKATHON HUSTLE(ROUND 1)

Professional Development

20 Qs

C programming

C programming

Professional Development

10 Qs

Flutter Online Quiz

Flutter Online Quiz

Professional Development

18 Qs

Interchange Management System (IMS)

Interchange Management System (IMS)

1st Grade - Professional Development

12 Qs

Pre-Test Time Series EViews

Pre-Test Time Series EViews

Professional Development

10 Qs

Quiz for Module3

Quiz for Module3

Professional Development

20 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?

Discover more resources for Professional Development