Basic C# intro

Basic C# intro

University

20 Qs

quiz-placeholder

Similar activities

Internet and App script

Internet and App script

5th Grade - University

22 Qs

KODING PYTON 1

KODING PYTON 1

11th Grade - University

20 Qs

Java Basics

Java Basics

12th Grade - University

22 Qs

Codean - Java Loop

Codean - Java Loop

University

17 Qs

Chapter 3 : SQL Command

Chapter 3 : SQL Command

University

15 Qs

Quiz sobre Estruturas de Repetição em Programação

Quiz sobre Estruturas de Repetição em Programação

University

25 Qs

Quiz-1-set-2-OOPS-CPP

Quiz-1-set-2-OOPS-CPP

University

20 Qs

Group 5 - Icebreaker

Group 5 - Icebreaker

University

20 Qs

Basic C# intro

Basic C# intro

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Raymond Radebe

Used 4+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used for a single-line comment in C#?

/*

//

<!--

/**

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for a multi-line comment in C#?

/* Comment */

<!-- Comment -->

// Comment //

/* Comment */

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid declaration of a variable in C#?

int 1number;

int number;

var int number;

int = number;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of variable would you use to store the value true or false?

string

int

bool

float

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen if a local variable is accessed outside its scope?

It will return a default value.

It will throw a compile-time error.

It will automatically be promoted to a global variable.

It will execute without errors.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of conversion does not require explicit casting?

Implicit conversion

Explicit conversion

Typecasting

Parsing

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

10

10.5

11

compile-time error

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?