Basic C# intro

Basic C# intro

University

20 Qs

quiz-placeholder

Similar activities

Pengenalan Kecerdasan Buatan

Pengenalan Kecerdasan Buatan

11th Grade - University

15 Qs

DATA STRUCTUIR Quiz1 (AIML)

DATA STRUCTUIR Quiz1 (AIML)

University

20 Qs

GDG ANDROID BOOTCAMP QUIZ

GDG ANDROID BOOTCAMP QUIZ

University

20 Qs

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

11th Grade - University

16 Qs

Windows File Sharing Quiz

Windows File Sharing Quiz

University

19 Qs

GRADE 4| 2ND QUARTER

GRADE 4| 2ND QUARTER

University

20 Qs

Skills of an Administrator Assessment

Skills of an Administrator Assessment

12th Grade - University

20 Qs

Design-Interface and Dialogue

Design-Interface and Dialogue

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?