Basic C# intro

Basic C# intro

University

20 Qs

quiz-placeholder

Similar activities

Python Loop

Python Loop

University

15 Qs

Java Concepts Assessment For J.A

Java Concepts Assessment For J.A

University

15 Qs

CMDP2063 Unix and C Programming

CMDP2063 Unix and C Programming

University

15 Qs

2F-3 | Python Quiz | 14/11/2024

2F-3 | Python Quiz | 14/11/2024

University

20 Qs

DSA (QUIZ 6) Hashing, Graphs, Advanced Graph Algorithms, and DP

DSA (QUIZ 6) Hashing, Graphs, Advanced Graph Algorithms, and DP

University

20 Qs

Java Quiz I

Java Quiz I

University

17 Qs

Web Application - PHP Repetition

Web Application - PHP Repetition

University

15 Qs

Quizizz SIOTICS #2

Quizizz SIOTICS #2

10th Grade - University

20 Qs

Basic C# intro

Basic C# intro

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Raymond Radebe

Used 2+ 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?