C# Programming Basics Quiz

C# Programming Basics Quiz

10th Grade

10 Qs

quiz-placeholder

Similar activities

Visual Basic I

Visual Basic I

10th - 11th Grade

10 Qs

AP CSP Review

AP CSP Review

9th - 12th Grade

10 Qs

Computer Science Foundations - Module 4 Review

Computer Science Foundations - Module 4 Review

9th - 11th Grade

9 Qs

Eval. 1BIM -  1ro B

Eval. 1BIM - 1ro B

7th Grade - University

15 Qs

9 класс Информатика Одномерный массив данных

9 класс Информатика Одномерный массив данных

9th - 10th Grade

10 Qs

Java Methods & Constructors

Java Methods & Constructors

10th - 12th Grade

11 Qs

Programação em C

Programação em C

10th - 12th Grade

10 Qs

Control Structures - Selection in Python

Control Structures - Selection in Python

8th Grade - University

11 Qs

C# Programming Basics Quiz

C# Programming Basics Quiz

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Keith Laban

Used 8+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of variables in C# programming?

The purpose of variables in C# programming is to handle user input.

The purpose of variables in C# programming is to store and manipulate data.

The purpose of variables in C# programming is to improve code readability.

The purpose of variables in C# programming is to execute conditional statements.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store whole numbers in C#?

string

int

float

boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for declaring an integer variable in C#?

string myVariable;

var myVariable;

double myVariable;

int myVariable;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which control statement is used to select only a certain part of code?

for

loop

while

if

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? int x = 5; int y = 3; int z = x + y; Console.WriteLine(z);

2

3

8

15

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which data types are used to store decimal numbers in C#?

double

float

integer

real

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of if-else statements in C#?

To declare variables in C#.

To execute a block of code repeatedly.

To control the flow of a program based on conditions.

To handle exceptions in C#.

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?