C# Programming Basics Quiz

Quiz
•
Computers
•
10th Grade
•
Medium

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
Similar Resources on Wayground
12 questions
Ponteiros em C

Quiz
•
9th - 12th Grade
15 questions
Unit4 Lucky Test

Quiz
•
10th Grade
15 questions
CSP - Unit 4

Quiz
•
10th Grade
15 questions
Unit 4 Quiz

Quiz
•
9th - 12th Grade
9 questions
10-сынып функция, процедура тест

Quiz
•
10th Grade
6 questions
AP CSP Math (3.3)

Quiz
•
9th - 12th Grade
10 questions
IGCSE Computer Science - Chapter 9: Problem-Solving and Design

Quiz
•
9th - 10th Grade
10 questions
APCSA - Unit 3

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade