C# Quiz

C# Quiz

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Максим Семёнов

Used 3+ times

FREE Resource

Student preview

quiz-placeholder

12 questions

Show all answers

1.

DRAW QUESTION

3 mins • 1 pt

smth

Media Image

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in C#?

A variable in C# is a named storage location that holds a value of a particular type.

A variable in C# is a keyword used to declare a constant value.

A variable in C# is a function that returns a value.

A variable in C# is a data structure that stores multiple values.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the different data types in C#?

integer, floating-point, character, string, boolean, array

integer, floating-point, character, string, boolean, void

integer, floating-point, character, string, boolean, null

integer, floating-point, character, string, boolean

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a variable in C#?

var num;

int num;

float num;

int num = 5;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between value types and reference types in C#?

Value types are stored directly in memory, while reference types are stored as references to the actual data.

Value types and reference types are stored in the same way in C#.

Value types are stored as references to the actual data, while reference types are stored directly in memory.

Value types and reference types are interchangeable in C#.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of control flow in C#?

The purpose of control flow in C# is to randomly execute statements in a program.

The purpose of control flow in C# is to determine the order of variables in a program.

The purpose of control flow in C# is to skip certain statements in a program.

The purpose of control flow in C# is to determine the order in which statements are executed in a program.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the different control flow statements in C#?

if-else, switch, for, while, do-while, foreach, break, continue, return, try-catch, throw

if-else, switch, for, while, do-while, foreach, break, continue, return, goto

if-else, switch, for, while, do-while, foreach, break, continue, return, print

if-else, switch, for, while, do-while, foreach, break, continue, return

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?