Basic C# intro

Basic C# intro

University

20 Qs

quiz-placeholder

Similar activities

Ulangan Harian Kelas XI

Ulangan Harian Kelas XI

2nd Grade - University

20 Qs

Emp. Tech. 12 - Intro to MS Excel Quiz

Emp. Tech. 12 - Intro to MS Excel Quiz

12th Grade - University

15 Qs

Getting Familiar with GIT and GITHUB

Getting Familiar with GIT and GITHUB

University

15 Qs

Python_MCQ_2

Python_MCQ_2

University

15 Qs

Java Basics Quiz for CH/PT Students

Java Basics Quiz for CH/PT Students

University

16 Qs

Python: operadores y tipos de datos

Python: operadores y tipos de datos

University

18 Qs

Introduction to Programming

Introduction to Programming

University

15 Qs

P3 IAS 2 Quiz

P3 IAS 2 Quiz

University

15 Qs

Basic C# intro

Basic C# intro

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Hard

Created by

Raymond Radebe

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?